Class TTest.Result
java.lang.Object
org.apache.commons.statistics.inference.BaseSignificanceResult
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResult(double statistic, double degreesOfFreedom, double p) Create an instance. -
Method Summary
Methods inherited from class BaseSignificanceResult
getPValue, getStatisticMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SignificanceResult
reject
-
Field Details
-
degreesOfFreedom
private final double degreesOfFreedomDegrees of freedom.
-
-
Constructor Details
-
Result
Result(double statistic, double degreesOfFreedom, double p) Create an instance.- Parameters:
statistic- Test statistic.degreesOfFreedom- Degrees of freedom.p- Result p-value.
-
-
Method Details
-
getDegreesOfFreedom
public double getDegreesOfFreedom()Gets the degrees of freedom.- Returns:
- the degrees of freedom
-