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

Kolmogorov-Smirnov Tests takes 'forever' on 10,000 item dataset

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 3.4
    • Labels:
      None
    • Environment:

      Java 8

      Description

      I have code simplified to the following:

      KolmogorovSmirnovTest kst = new KolmogorovSmirnovTest();
      NormalDistribution nd = new NormalDistribution(mean,stddev);
      kst.kolmogorovSmirnovTest(nd,dataset)

      I find that for my dataset of 10,000 items, the call to kolmogorovSmirnovTest takes 'forever'. It has not returned after nearly 15minutes and in one my my tests has gone over 150MB in memory usage.

        Attachments

        1. 1.txt
          36 kB
          Schalk W. Cronjé
        2. ReproduceKsIssue.java
          1 kB
          Schalk W. Cronjé
        3. ReproduceKsIssue.groovy
          0.5 kB
          Schalk W. Cronjé
        4. MATH-1131.patch
          6 kB
          Thomas Neidhart

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ysb33r Schalk W. Cronjé
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: