javanpst.distributions.tests
Class KolmogorovDistribution
- java.lang.Object
-
- javanpst.distributions.tests.KolmogorovDistribution
-
public class KolmogorovDistribution extends java.lang.ObjectAn implementation of the Kolmogorov 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 doublecomputeProbability(int n, double Dn)Computes p-value of the Kolmogorov distribution.static KolmogorovDistributiongetInstance()Singleton pattern access to the distributionstatic Critical1KeyTablegetTable()Gets the table of the distribution
-
-
-
Method Detail
-
getInstance
public static KolmogorovDistribution getInstance()
Singleton pattern access to the distribution- Returns:
- the instance of the distribution
-
getTable
public static Critical1KeyTable getTable()
Gets the table of the distribution- Returns:
- Reference to the table
-
computeProbability
public double computeProbability(int n, double Dn)Computes p-value of the Kolmogorov distribution.- Parameters:
n- size of the populationDn- Kolmogorov statistic- Returns:
- p-value computed
-
-
DMelt 3.0 © DataMelt by jWork.ORG