Documentation of 'javanpst.distributions.tests.CDDistribution' Java class
CDDistribution
javanpst.distributions.tests

Class CDDistribution



  • public class CDDistribution
    extends java.lang.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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.