javanpst.tests.twoSample.K_STest
Class K_STest
- java.lang.Object
-
- javanpst.tests.StatisticalTest
-
- javanpst.tests.twoSample.K_STest.K_STest
-
public class K_STest extends StatisticalTest
The Kolmogorov-Smirnov test for two samples This test can be applied to test the null hypothesis of equal distributions against the one side and two-side alternatives. The exact p-value is computed is the number of values per sample is equal or less than 40. In addition, an approximation to the normal distribution is computed.
-
-
Constructor Summary
Constructors Constructor and Description K_STest()Default builderK_STest(DataTable newData)Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclearData()Clears the data stored in the testvoiddoTest()Performs the testdoublegetDn()Get Kolmogorov double tailed statisticdoublegetDnNeg()Get Kolmogorov left tail (Y > X) statisticdoublegetDnPos()Get Kolmogorov righ tail statisticdoublegetDoublePValue()Get double tail p-valuedoublegetExactDoublePValue()Get double tail exact p-valuedoublegetExactLeftPValue()Get left tail exact p-valuedoublegetExactRightPValue()Get right tail exact p-valuedoublegetLeftPValue()Get left tail p-valuedoublegetRightPValue()Get right tail p-valuejava.lang.StringprintData()Prints the data stored in the testjava.lang.StringprintReport()Prints a report with the results of the testvoidsetData(DataTable newData)Sets data to test-
Methods inherited from class javanpst.tests.StatisticalTest
isDataReady, isPerformed
-
-
-
-
Constructor Detail
-
K_STest
public K_STest()
Default builder
-
K_STest
public K_STest(DataTable newData)
Builder. Load data to test.- Parameters:
newData- data to test.
-
-
Method Detail
-
clearData
public void clearData()
Clears the data stored in the test- Specified by:
clearDatain classStatisticalTest
-
setData
public void setData(DataTable newData)
Sets data to test- Parameters:
newData- data to test.
-
doTest
public void doTest()
Performs the test- Specified by:
doTestin classStatisticalTest
-
getDn
public double getDn()
Get Kolmogorov double tailed statistic- Returns:
- Kolmogorov statistic
-
getDnNeg
public double getDnNeg()
Get Kolmogorov left tail (Y > X) statistic- Returns:
- Kolmogorov statistic
-
getDnPos
public double getDnPos()
Get Kolmogorov righ tail statistic- Returns:
- Kolmogorov statistic
-
getExactLeftPValue
public double getExactLeftPValue()
Get left tail exact p-value- Returns:
- left tail p-value computed
-
getExactRightPValue
public double getExactRightPValue()
Get right tail exact p-value- Returns:
- right tail p-value computed
-
getExactDoublePValue
public double getExactDoublePValue()
Get double tail exact p-value- Returns:
- double tail p-value computed
-
getLeftPValue
public double getLeftPValue()
Get left tail p-value- Returns:
- left tail p-value computed
-
getRightPValue
public double getRightPValue()
Get right tail p-value- Returns:
- right tail p-value computed
-
getDoublePValue
public double getDoublePValue()
Get double tail p-value- Returns:
- double tail 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