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.
- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptiondoubleGets the degrees of freedom.doubleReturns the test statistic p-value.doubleReturns the test statistic.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SignificanceResult
reject
-
Method Details
-
getDegreesOfFreedom
-
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
-