javanpst.distributions.tests
Class KolmogorovTwoSampleDistribution
- java.lang.Object
-
- javanpst.distributions.tests.KolmogorovTwoSampleDistribution
-
public class KolmogorovTwoSampleDistribution extends java.lang.ObjectAn implementation of the Kolmogorov distribution for two samples. 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(int n, double Dn)Computes p-value of the Kolmogorov distribution.doublecomputeExactProbability(int n, double Dn)Computes p-value of the Kolmogorov distribution.static Incomplete3KeyTablegetExactTable()Gets the table of the distributionstatic KolmogorovTwoSampleDistributiongetInstance()Singleton pattern access to the distributionstatic Critical1KeyTablegetTable()Gets the table of the critical values distribution
-
-
-
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 populationDn- 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 populationDn- Kolmogorov statistic- Returns:
- p-value computed
-
-
DMelt 3.0 © DataMelt by jWork.ORG