Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1274

Represent Kolmogorov-Smirnov statistic as long value

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0, 3.6
    • Labels:
      None
    • Flags:
      Patch

      Description

      In KolmogorovSmirnovTest.java the 2-sample Kolmogorov-Smirnov statistic is internally represented as double value. However, the KS-statistic can be accurately represented as long value if multiplied by both sample sizes. This approach saves some floating point operations and avoids difficulties when comparing two KS-statistics. Currently, Precision.compareTo with some tolerance must be used.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Otmar Ertl Otmar Ertl
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: