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

public static final class TTest.Result extends BaseSignificanceResult
Result for the t-test.

This class is immutable.

  • Field Details

    • degreesOfFreedom

      private final double degreesOfFreedom
      Degrees 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