javanpst.tests.goodness.lillieforsTest
Class LillieforsTest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.goodness.lillieforsTest.LillieforsTest
-
public class LillieforsTest extends StatisticalTest
The Lilliefors test. This goodness of fit test can be used to adjust a given sample to a Normal distribution, with unknown mean and sigma parameters. Adjustment to an Exponential distribution, with unknown mean, is also possible.
-
-
Constructor Summary
Constructors Constructor and Description LillieforsTest()Default builderLillieforsTest(NumericSequence newSequence)Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadjustExponential()Sets adjustment to a exponential distributionvoidadjustNormal()Sets adjustment to a normal distributionvoidclearData()Clears the data stored in the testvoiddoTest()Performs the testdoublegetDn()Get Dn statisticdoublegetPValue()Get p-value of the testjava.lang.StringprintData()Prints the data stored in the testjava.lang.StringprintReport()Prints a report with the results of the testvoidsetData(NumericSequence newSequence)Load data to test.-
Methods inherited from class javanpst.tests.StatisticalTest
isDataReady, isPerformed
-
-
-
-
Constructor Detail
-
LillieforsTest
public LillieforsTest()
Default builder
-
LillieforsTest
public LillieforsTest(NumericSequence newSequence)
Builder. Load data to test.- Parameters:
newSequence- data to test.
-
-
Method Detail
-
clearData
public void clearData()
Clears the data stored in the test- Specified by:
clearDatain classStatisticalTest
-
setData
public void setData(NumericSequence newSequence)
Load data to test.- Parameters:
newSequence- data to test.
-
adjustNormal
public void adjustNormal()
Sets adjustment to a normal distribution
-
adjustExponential
public void adjustExponential()
Sets adjustment to a exponential distribution
-
doTest
public void doTest()
Performs the test- Specified by:
doTestin classStatisticalTest
-
getDn
public double getDn()
Get Dn statistic- Returns:
- Dn Statistic
-
getPValue
public double getPValue()
Get p-value of the test- Returns:
- p-value computed
-
printData
public java.lang.String printData()
Prints the data stored in the test- Specified by:
printDatain classStatisticalTest- Returns:
- Data stored
-
printReport
public java.lang.String printReport()
Prints a report with the results of the test- Specified by:
printReportin classStatisticalTest- Returns:
- Output report
-
-
DMelt 3.0 © DataMelt by jWork.ORG