Class KolmogorovSmirnovTest.OneResult
- java.lang.Object
-
- org.apache.commons.statistics.inference.KolmogorovSmirnovTest.OneResult
-
- All Implemented Interfaces:
SignificanceResult
- Direct Known Subclasses:
KolmogorovSmirnovTest.TwoResult
- Enclosing class:
- KolmogorovSmirnovTest
public static class KolmogorovSmirnovTest.OneResult extends Object
Result for the one-sample Kolmogorov-Smirnov test.This class is immutable.
- Since:
- 1.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getPValue()
Returns the test statistic p-value.int
getSign()
Gets the sign of the statistic.double
getStatistic()
Returns the test statistic.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.statistics.inference.SignificanceResult
reject
-
-
-
-
Method Detail
-
getSign
public int getSign()
Gets the sign of the statistic. This is 1 for \(D^+\) and -1 for \(D^-\). For a two sided-test this is zero if the magnitude of \(D^+\) and \(D^-\) was equal; otherwise the sign indicates the larger of \(D^+\) or \(D^-\).- Returns:
- the sign
-
getStatistic
public double getStatistic()
Description copied from interface:SignificanceResult
Returns the test statistic.- Specified by:
getStatistic
in interfaceSignificanceResult
- Returns:
- the statistic
-
getPValue
public double getPValue()
Description copied from interface:SignificanceResult
Returns the test statistic p-value.The number returned is the smallest significance level at which one can reject the null hypothesis.
- Specified by:
getPValue
in interfaceSignificanceResult
- Returns:
- the p-value
-
-