Package gov.nih.mipav.model.algorithms
Class Statistics
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.Statistics
-
public class Statistics extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private double[]ansRstatic intCHI_SQUARED_CUMULATIVE_DISTRIBUTION_FUNCTIONstatic intCHI_SQUARED_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTIONstatic intCHI_SQUARED_PROBABILITY_DENSITY_FUNCTIONstatic intGAUSSIAN_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTIONstatic intGAUSSIAN_PROBABILITY_FUNCTIONAlso known as the normal probability functionstatic intGAUSSIAN_PROBABILITY_INTEGRALprivate intstatisticTypestatic intSTUDENTS_T_DISTRIBUTION_CUMULATIVE_DISTRIBUTION_FUNCTIONstatic intSTUDENTS_T_DISTRIBUTION_PROBABILITY_DENSITY_FUNCTIONstatic intSTUDENTS_T_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTIONprivate doublevprivate doublex
-
Constructor Summary
Constructors Constructor Description Statistics()Statistics(int statisticType, double x, double degreesOfFreedom, double[] ansR)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidchiSquaredCumulativeDistributionFunction()private voidchiSquaredInverseCumulativeDistributionFunction()private voidchiSquaredProbabilityDensityFunction()private voidgaussianInverseCumulativeDistributionFunction()private voidgaussianProbabilityFunction()private voidgaussianProbabilityIntegral()Formula found in Computation of Special Functions by Shanjie Zhang and Jianming Jin Chapter 16.3 Gaussian Probability Integral page 625.voidrun()private voidtCumulativeDistributionFunction()voidtestChiSquaredInverseCumulativeDistributionFunction()private voidtInverseCumulativeDistributionFunction()private voidtProbabilityFunction()
-
-
-
Field Detail
-
GAUSSIAN_PROBABILITY_FUNCTION
public static final int GAUSSIAN_PROBABILITY_FUNCTION
Also known as the normal probability function- See Also:
- Constant Field Values
-
GAUSSIAN_PROBABILITY_INTEGRAL
public static final int GAUSSIAN_PROBABILITY_INTEGRAL
- See Also:
- Constant Field Values
-
GAUSSIAN_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTION
public static final int GAUSSIAN_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTION
- See Also:
- Constant Field Values
-
STUDENTS_T_DISTRIBUTION_PROBABILITY_DENSITY_FUNCTION
public static final int STUDENTS_T_DISTRIBUTION_PROBABILITY_DENSITY_FUNCTION
- See Also:
- Constant Field Values
-
STUDENTS_T_DISTRIBUTION_CUMULATIVE_DISTRIBUTION_FUNCTION
public static final int STUDENTS_T_DISTRIBUTION_CUMULATIVE_DISTRIBUTION_FUNCTION
- See Also:
- Constant Field Values
-
STUDENTS_T_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTION
public static final int STUDENTS_T_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTION
- See Also:
- Constant Field Values
-
CHI_SQUARED_PROBABILITY_DENSITY_FUNCTION
public static final int CHI_SQUARED_PROBABILITY_DENSITY_FUNCTION
- See Also:
- Constant Field Values
-
CHI_SQUARED_CUMULATIVE_DISTRIBUTION_FUNCTION
public static final int CHI_SQUARED_CUMULATIVE_DISTRIBUTION_FUNCTION
- See Also:
- Constant Field Values
-
CHI_SQUARED_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTION
public static final int CHI_SQUARED_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTION
- See Also:
- Constant Field Values
-
statisticType
private int statisticType
-
x
private double x
-
v
private double v
-
ansR
private double[] ansR
-
-
Method Detail
-
testChiSquaredInverseCumulativeDistributionFunction
public void testChiSquaredInverseCumulativeDistributionFunction()
-
run
public void run()
-
gaussianProbabilityFunction
private void gaussianProbabilityFunction()
-
gaussianProbabilityIntegral
private void gaussianProbabilityIntegral()
Formula found in Computation of Special Functions by Shanjie Zhang and Jianming Jin Chapter 16.3 Gaussian Probability Integral page 625. |error(x)| <= 7.5E-8
-
gaussianInverseCumulativeDistributionFunction
private void gaussianInverseCumulativeDistributionFunction()
-
tProbabilityFunction
private void tProbabilityFunction()
-
tCumulativeDistributionFunction
private void tCumulativeDistributionFunction()
-
tInverseCumulativeDistributionFunction
private void tInverseCumulativeDistributionFunction()
-
chiSquaredProbabilityDensityFunction
private void chiSquaredProbabilityDensityFunction()
-
chiSquaredCumulativeDistributionFunction
private void chiSquaredCumulativeDistributionFunction()
-
chiSquaredInverseCumulativeDistributionFunction
private void chiSquaredInverseCumulativeDistributionFunction()
-
-