Class BaseSignificanceResult

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double p
      p-value.
      private double statistic
      Test statistics.
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseSignificanceResult​(double statistic, double p)
      Create an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • Field Detail

      • statistic

        private final double statistic
        Test statistics.
      • p

        private final double p
        p-value.
    • Constructor Detail

      • BaseSignificanceResult

        BaseSignificanceResult​(double statistic,
                               double p)
        Create an instance.
        Parameters:
        statistic - Test statistic.
        p - Result p-value.
    • Method Detail

      • 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 interface SignificanceResult
        Returns:
        the p-value