javanpst.distributions.tests
Class NMDistribution
- java.lang.Object
-
- javanpst.distributions.tests.NMDistribution
-
public class NMDistribution extends java.lang.ObjectAn implementation of the NM 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 realNM)Computes left tail p-value of the NM distribution.doublecomputeRightProbability(int n, double realNM)Computes right tail p-value of the NM distribution.static NMDistributiongetInstance()Singleton pattern access to the distributionstatic Incomplete2KeyTablegetTableLeft()Gets the table of the left tail of the distributionstatic Incomplete2KeyTablegetTableRight()Gets the table of the right tail of the distributionbooleanisApproximate()Tests if the last estimation was approximate
-
-
-
Method Detail
-
getInstance
public static NMDistribution getInstance()
Singleton pattern access to the distribution- Returns:
- the instance of the distribution
-
getTableLeft
public static Incomplete2KeyTable getTableLeft()
Gets the table of the left tail of the distribution- Returns:
- Reference to the table
-
getTableRight
public static Incomplete2KeyTable getTableRight()
Gets the table of the right tail of the distribution- Returns:
- Reference to the table
-
computeLeftProbability
public double computeLeftProbability(int n, double realNM)Computes left tail p-value of the NM distribution.- Parameters:
n- length of the sequencerealNM- NM statistic- Returns:
- p-value computed
-
computeRightProbability
public double computeRightProbability(int n, double realNM)Computes right tail p-value of the NM distribution.- Parameters:
n- length of the sequencerealNM- NM statistic- Returns:
- p-value computed
-
isApproximate
public boolean isApproximate()
Tests if the last estimation was approximate- Returns:
- true if the last estimation was approximate. False, otherwise
-
-
DMelt 3.0 © DataMelt by jWork.ORG