Class KolmogorovSmirnovTestResult

Object
org.apache.spark.mllib.stat.test.KolmogorovSmirnovTestResult
All Implemented Interfaces:
TestResult<Object>

public class KolmogorovSmirnovTestResult extends Object implements TestResult<Object>
Object containing the test results for the Kolmogorov-Smirnov test.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the degree(s) of freedom of the hypothesis test.
    Null hypothesis of the test.
    double
    The probability of obtaining a test statistic result at least as extreme as the one that was actually observed, assuming that the null hypothesis is true.
    double
    Test statistic.
    String explaining the hypothesis test result.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • degreesOfFreedom

      public int degreesOfFreedom()
      Description copied from interface: TestResult
      Returns the degree(s) of freedom of the hypothesis test. Return type should be Number(e.g. Int, Double) or tuples of Numbers for toString compatibility.
      Specified by:
      degreesOfFreedom in interface TestResult<Object>
      Returns:
      (undocumented)
    • nullHypothesis

      public String nullHypothesis()
      Description copied from interface: TestResult
      Null hypothesis of the test.
      Specified by:
      nullHypothesis in interface TestResult<Object>
      Returns:
      (undocumented)
    • pValue

      public double pValue()
      Description copied from interface: TestResult
      The probability of obtaining a test statistic result at least as extreme as the one that was actually observed, assuming that the null hypothesis is true.
      Specified by:
      pValue in interface TestResult<Object>
      Returns:
      (undocumented)
    • statistic

      public double statistic()
      Description copied from interface: TestResult
      Test statistic.
      Specified by:
      statistic in interface TestResult<Object>
      Returns:
      (undocumented)
    • toString

      public String toString()
      Description copied from interface: TestResult
      String explaining the hypothesis test result. Specific classes implementing this trait should override this method to output test-specific information.
      Specified by:
      toString in interface TestResult<Object>
      Overrides:
      toString in class Object
      Returns:
      (undocumented)