Class WilcoxonSignedRankTest.Result

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean tiedValues
      Flag indicating the data had tied values.
      private boolean zeroValues
      Flag indicating the data had zero values.
    • Constructor Summary

      Constructors 
      Constructor Description
      Result​(double statistic, boolean tiedValues, boolean zeroValues, double p)
      Create an instance.
    • Field Detail

      • tiedValues

        private final boolean tiedValues
        Flag indicating the data had tied values.
      • zeroValues

        private final boolean zeroValues
        Flag indicating the data had zero values.
    • Constructor Detail

      • Result

        Result​(double statistic,
               boolean tiedValues,
               boolean zeroValues,
               double p)
        Create an instance.
        Parameters:
        statistic - Test statistic.
        tiedValues - Flag indicating the data had tied values.
        zeroValues - Flag indicating the data had zero values.
        p - Result p-value.
    • Method Detail

      • hasTiedValues

        public boolean hasTiedValues()
        Return true if the data had tied values (with equal ranks).

        Note: The exact computation cannot be used when there are tied values. The p-value uses the asymptotic approximation using a tie correction.

        Returns:
        true if there were tied values
      • hasZeroValues

        public boolean hasZeroValues()
        Return true if the data had zero values. This occurs when the differences between sample values matched the expected location shift: z = x - y == mu.

        Note: The exact computation cannot be used when there are zero values. The p-value uses the asymptotic approximation.

        Returns:
        true if there were zero values