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[]
ansR
static int
CHI_SQUARED_CUMULATIVE_DISTRIBUTION_FUNCTION
static int
CHI_SQUARED_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTION
static int
CHI_SQUARED_PROBABILITY_DENSITY_FUNCTION
static int
GAUSSIAN_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTION
static int
GAUSSIAN_PROBABILITY_FUNCTION
Also known as the normal probability functionstatic int
GAUSSIAN_PROBABILITY_INTEGRAL
private int
statisticType
static int
STUDENTS_T_DISTRIBUTION_CUMULATIVE_DISTRIBUTION_FUNCTION
static int
STUDENTS_T_DISTRIBUTION_PROBABILITY_DENSITY_FUNCTION
static int
STUDENTS_T_INVERSE_CUMULATIVE_DISTRIBUTION_FUNCTION
private double
v
private double
x
-
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 void
chiSquaredCumulativeDistributionFunction()
private void
chiSquaredInverseCumulativeDistributionFunction()
private void
chiSquaredProbabilityDensityFunction()
private void
gaussianInverseCumulativeDistributionFunction()
private void
gaussianProbabilityFunction()
private void
gaussianProbabilityIntegral()
Formula found in Computation of Special Functions by Shanjie Zhang and Jianming Jin Chapter 16.3 Gaussian Probability Integral page 625.void
run()
private void
tCumulativeDistributionFunction()
void
testChiSquaredInverseCumulativeDistributionFunction()
private void
tInverseCumulativeDistributionFunction()
private void
tProbabilityFunction()
-
-
-
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()
-
-