Class TTest.Result
java.lang.Object
org.apache.commons.statistics.inference.TTest.Result
- All Implemented Interfaces:
SignificanceResult
- Enclosing class:
TTest
Result for the t-test.
This class is immutable.
-
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the degrees of freedom.doubleReturns the test statistic p-value.doubleReturns the test statistic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.statistics.inference.SignificanceResult
reject
-
Method Details
-
getDegreesOfFreedom
Gets the degrees of freedom.- Returns:
- the degrees of freedom
-
getStatistic
public double getStatistic()Description copied from interface:SignificanceResultReturns the test statistic.- Specified by:
getStatisticin interfaceSignificanceResult- Returns:
- the statistic
-
getPValue
public double getPValue()Description copied from interface:SignificanceResultReturns the test statistic p-value.The number returned is the smallest significance level at which one can reject the null hypothesis.
- Specified by:
getPValuein interfaceSignificanceResult- Returns:
- the p-value
-