javanpst.distributions.tests
Class RVNDistribution
- java.lang.Object
-
- javanpst.distributions.tests.RVNDistribution
-
public class RVNDistribution extends java.lang.ObjectAn implementation of the Ranks Von Newmann 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 doublecomputeLeftProbability(int n, double RVN)Computes left tail p-value of the Ranks Von Newmann distribution.doublecomputeRightProbability(int n, double RVN)Computes right tail p-value of the Ranks Von Newmann distribution.static RVNDistributiongetInstance()Singleton pattern access to the distributionstatic Critical1KeyTablegetTable()Gets the table of critical values of the distribution
-
-
-
Method Detail
-
getInstance
public static RVNDistribution getInstance()
Singleton pattern access to the distribution- Returns:
- the instance of the distribution
-
getTable
public static Critical1KeyTable getTable()
Gets the table of critical values of the distribution- Returns:
- Reference to the table
-
computeLeftProbability
public double computeLeftProbability(int n, double RVN)Computes left tail p-value of the Ranks Von Newmann distribution.- Parameters:
n- size of the sequenceRVN- Ranks Von Newmann statistic- Returns:
- p-value computed
-
computeRightProbability
public double computeRightProbability(int n, double RVN)Computes right tail p-value of the Ranks Von Newmann distribution.- Parameters:
n- size of the sequenceRVN- Ranks Von Newmann statistic- Returns:
- p-value computed
-
-
DMelt 3.0 © DataMelt by jWork.ORG