Class KolmogorovSmirnovTest.OneResult

java.lang.Object
org.apache.commons.statistics.inference.BaseSignificanceResult
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 BaseSignificanceResult
Result for the one-sample Kolmogorov-Smirnov test.

This class is immutable.

Since:
1.1
  • Field Details

    • sign

      private final int sign
      Sign of the statistic.
  • Constructor Details

    • OneResult

      OneResult(double statistic, int sign, double p)
      Create an instance.
      Parameters:
      statistic - Test statistic.
      sign - Sign of the statistic.
      p - Result p-value.
  • Method Details

    • 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