javanpst.distributions.tests
Class LillieforsDistribution
- java.lang.Object
-
- javanpst.distributions.tests.LillieforsDistribution
-
public class LillieforsDistribution extends java.lang.ObjectAn implementation of the Lilliefors 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 doublecomputeProbabilityExponential(int n, double Dn)Computes p-value of the Lilliefors distribution (adjust to a normal distribution).doublecomputeProbabilityNormal(int n, double Dn)Computes p-value of the Lilliefors distribution (adjust to a normal distribution).static Critical1KeyTablegetExponentialTable()Gets the table of the distribution (exponential)static LillieforsDistributiongetInstance()Singleton pattern access to the distributionstatic Critical1KeyTablegetNormalTable()Gets the table of the distribution (normal)booleanisApproximate()Tests if the last estimation was approximate
-
-
-
Method Detail
-
getInstance
public static LillieforsDistribution getInstance()
Singleton pattern access to the distribution- Returns:
- the instance of the distribution
-
getNormalTable
public static Critical1KeyTable getNormalTable()
Gets the table of the distribution (normal)- Returns:
- Reference to the table
-
getExponentialTable
public static Critical1KeyTable getExponentialTable()
Gets the table of the distribution (exponential)- Returns:
- Reference to the table
-
computeProbabilityNormal
public double computeProbabilityNormal(int n, double Dn)Computes p-value of the Lilliefors distribution (adjust to a normal distribution).- Parameters:
n- size of the populationDn- Lilliefors statistic- Returns:
- p-value computed
-
computeProbabilityExponential
public double computeProbabilityExponential(int n, double Dn)Computes p-value of the Lilliefors distribution (adjust to a normal distribution).- Parameters:
n- size of the populationDn- Lilliefors 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