CDDistribution
javanpst.distributions.tests

Class CDDistribution



  • public class CDDistributionextends Object
    An implementation of the Charkraborti and Desu test test distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
    • Method Detail

      • getInstance

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

        public double computeExactProbability(double W,                             int N,                             int populations,                             int length)
        Compute exact p-value of the CD distribution
        Parameters:
        W - W statistic
        N - number of elements
        populations - number of populations
        length - number values per sample
        Returns:
        p-value computed
      • computeAsymptoticProbability

        public double computeAsymptoticProbability(double W,                                  int N,                                  int populations,                                  int length)
        Compute asymptotic p-value, following a normal distribution
        Parameters:
        W - W statistic
        N - number of elements
        populations - number of populations
        length - number values per sample
        Returns:
        p-value computed

SCaVis 2.0 © jWork.ORG