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