KolmogorovTwoSampleDistribution
javanpst.distributions.tests

Class KolmogorovTwoSampleDistribution



  • public class KolmogorovTwoSampleDistributionextends Object
    An implementation of the Kolmogorov distribution for two samples. Uses a Singleton pattern to ensure only an instance of the class is allowed.
    • Method Detail

      • getInstance

        public static KolmogorovTwoSampleDistribution getInstance()
        Singleton pattern access to the distribution
        Returns:
        the instance of the distribution
      • getTable

        public static Critical1KeyTable getTable()
        Gets the table of the critical values distribution
        Returns:
        Reference to the table
      • getExactTable

        public static Incomplete3KeyTable getExactTable()
        Gets the table of the distribution
        Returns:
        Reference to the table
      • computeExactProbability

        public double computeExactProbability(int n,                             double Dn)
        Computes p-value of the Kolmogorov distribution.
        Parameters:
        n - size of the population
        Dn - Kolmogorov statistic
        Returns:
        p-value computed
      • computeAsymptoticProbability

        public double computeAsymptoticProbability(int n,                                  double Dn)
        Computes p-value of the Kolmogorov distribution.
        Parameters:
        n - size of the population
        Dn - Kolmogorov statistic
        Returns:
        p-value computed

SCaVis 2.1 © jWork.ORG