Class Statistics


  • public class Statistics
    extends java.lang.Object
    • 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
    • Constructor Detail

      • Statistics

        public Statistics()
      • Statistics

        public Statistics​(int statisticType,
                          double x,
                          double degreesOfFreedom,
                          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()