javanpst.distributions.tests
Class CDDistribution
- java.lang.Object
-
- javanpst.distributions.tests.CDDistribution
-
public class CDDistribution extends java.lang.ObjectAn implementation of the Charkraborti and Desu test test distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecomputeAsymptoticProbability(double W, int N, int populations, int length)Compute asymptotic p-value, following a normal distributiondoublecomputeExactProbability(double W, int N, int populations, int length)Compute exact p-value of the CD distributionstatic CDDistributiongetInstance()Singleton pattern access to the distribution
-
-
-
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 statisticN- number of elementspopulations- number of populationslength- 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 statisticN- number of elementspopulations- number of populationslength- number values per sample- Returns:
- p-value computed
-
-
DMelt 3.0 © DataMelt by jWork.ORG