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

Represent Kolmogorov-Smirnov statistic as long value

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0, 3.6
    • None
    • None
    • 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

        1. MATH-1274.patch
          11 kB
          Otmar Ertl

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: