javanpst.distributions.tests
Class PageDistribution
- java.lang.Object
-
- javanpst.distributions.tests.PageDistribution
-
public class PageDistribution extends java.lang.ObjectAn implementation of the Page 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(int n, int k, double L)Computes asymptotic p-value of the Page distribution.doublecomputeExactProbability(int n, int k, double L)Computes Exact p-value of the Page distribution.static PageDistributiongetInstance()Singleton pattern access to the distributionstatic Critical2KeyTablegetTable()Gets the table of critical values of the distribution
-
-
-
Method Detail
-
getInstance
public static PageDistribution getInstance()
Singleton pattern access to the distribution- Returns:
- the instance of the distribution
-
getTable
public static Critical2KeyTable getTable()
Gets the table of critical values of the distribution- Returns:
- Reference to the table
-
computeExactProbability
public double computeExactProbability(int n, int k, double L)Computes Exact p-value of the Page distribution.- Parameters:
n- number of columnsk- number of rowsL- Page statistic- Returns:
- p-value computed
-
computeAsymptoticProbability
public double computeAsymptoticProbability(int n, int k, double L)Computes asymptotic p-value of the Page distribution.- Parameters:
n- number of columnsk- number of rowsL- Page statistic- Returns:
- p-value computed
-
-
DMelt 3.0 © DataMelt by jWork.ORG