javanpst.distributions.tests
Class TotalNumberOfRunsDistribution
- java.lang.Object
-
- javanpst.distributions.tests.TotalNumberOfRunsDistribution
-
public class TotalNumberOfRunsDistribution extends java.lang.ObjectAn implementation of the Total number of runs 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 doublecomputeAsymptoticDoubleTailProbability(int a, int b, int R)Computes asymptotic double tail p-value of the Total number of runs distributiondoublecomputeAsymptoticLeftTailProbability(int a, int b, int R)Computes asymptotic left tail p-value of the Total number of runs distributiondoublecomputeAsymptoticRightTailProbability(int a, int b, int R)Computes asymptotic left tail p-value of the Total number of runs distributiondoublecomputeLeftTailProbability(int a, int b, int R)Computes left tail p-value of the Total number of runs distributiondoublecomputeRightTailProbability(int a, int b, int R)Computes right tail p-value of the Total number of runs distributionstatic TotalNumberOfRunsDistributiongetInstance()Singleton pattern access to the distributionstatic Incomplete3KeyTablegetTableLeft()Gets the left tail table of the distributionstatic Incomplete3KeyTablegetTableRight()Gets the right tail table of the distribution
-
-
-
Method Detail
-
getInstance
public static TotalNumberOfRunsDistribution getInstance()
Singleton pattern access to the distribution- Returns:
- the instance of the distribution
-
getTableLeft
public static Incomplete3KeyTable getTableLeft()
Gets the left tail table of the distribution- Returns:
- Reference to the table
-
getTableRight
public static Incomplete3KeyTable getTableRight()
Gets the right tail table of the distribution- Returns:
- Reference to the table
-
computeLeftTailProbability
public double computeLeftTailProbability(int a, int b, int R)Computes left tail p-value of the Total number of runs distribution- Parameters:
a- number of elements of the first typeb- number of elements of the second typeR- total number of runs- Returns:
- p-value computed
-
computeRightTailProbability
public double computeRightTailProbability(int a, int b, int R)Computes right tail p-value of the Total number of runs distribution- Parameters:
a- number of elements of the first typeb- number of elements of the second typeR- total number of runs- Returns:
- p-value computed
-
computeAsymptoticLeftTailProbability
public double computeAsymptoticLeftTailProbability(int a, int b, int R)Computes asymptotic left tail p-value of the Total number of runs distribution- Parameters:
a- number of elements of the first typeb- number of elements of the second typeR- total number of runs- Returns:
- p-value computed
-
computeAsymptoticRightTailProbability
public double computeAsymptoticRightTailProbability(int a, int b, int R)Computes asymptotic left tail p-value of the Total number of runs distribution- Parameters:
a- number of elements of the first typeb- number of elements of the second typeR- total number of runs- Returns:
- p-value computed
-
computeAsymptoticDoubleTailProbability
public double computeAsymptoticDoubleTailProbability(int a, int b, int R)Computes asymptotic double tail p-value of the Total number of runs distribution- Parameters:
a- number of elements of the first typeb- number of elements of the second typeR- total number of runs- Returns:
- p-value computed
-
-
DMelt 3.0 © DataMelt by jWork.ORG