Package org.apache.spark.mllib.stat.test
Class ChiSqTestResult
Object
org.apache.spark.mllib.stat.test.ChiSqTestResult
- All Implemented Interfaces:
- TestResult<Object>
Object containing the test results for the chi-squared hypothesis test.
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the degree(s) of freedom of the hypothesis test.method()Null hypothesis of the test.doublepValue()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.doubleTest statistic.toString()String explaining the hypothesis test result.
- 
Method Details- 
degreesOfFreedompublic int degreesOfFreedom()Description copied from interface:TestResultReturns 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:
- degreesOfFreedomin interface- TestResult<Object>
- Returns:
- (undocumented)
 
- 
method
- 
nullHypothesisDescription copied from interface:TestResultNull hypothesis of the test.- Specified by:
- nullHypothesisin interface- TestResult<Object>
- Returns:
- (undocumented)
 
- 
pValuepublic double pValue()Description copied from interface:TestResultThe 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:
- pValuein interface- TestResult<Object>
- Returns:
- (undocumented)
 
- 
statisticpublic double statistic()Description copied from interface:TestResultTest statistic.- Specified by:
- statisticin interface- TestResult<Object>
- Returns:
- (undocumented)
 
- 
toStringDescription copied from interface:TestResultString explaining the hypothesis test result. Specific classes implementing this trait should override this method to output test-specific information.- Specified by:
- toStringin interface- TestResult<Object>
- Overrides:
- toStringin class- Object
- Returns:
- (undocumented)
 
 
-