Class KolmogorovSmirnovTest.OneResult

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int sign
      Sign of the statistic.
    • Constructor Summary

      Constructors 
      Constructor Description
      OneResult​(double statistic, int sign, double p)
      Create an instance.
    • Field Detail

      • sign

        private final int sign
        Sign of the statistic.
    • Constructor Detail

      • OneResult

        OneResult​(double statistic,
                  int sign,
                  double p)
        Create an instance.
        Parameters:
        statistic - Test statistic.
        sign - Sign of the statistic.
        p - Result p-value.
    • Method Detail

      • getSign

        public int getSign()
        Gets the sign of the statistic. This is 1 for \(D^+\) and -1 for \(D^-\). For a two sided-test this is zero if the magnitude of \(D^+\) and \(D^-\) was equal; otherwise the sign indicates the larger of \(D^+\) or \(D^-\).
        Returns:
        the sign