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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResult
(double statistic, double degreesOfFreedom, double p) Create an instance. -
Method Summary
Methods inherited from class org.apache.commons.statistics.inference.BaseSignificanceResult
getPValue, getStatistic
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
-
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
-