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

EmpiricalDistribution.inverseCumulativeProbability throws OutOfRangeException incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.6.1
    • 4.0
    • None
    • None

    Description

      For the specific data loaded (120 values)

      EmpiricalDistribution.inverseCumulativeProbability(0.717d) throws OutOfRangeException, which does not make sense.

       

      Exception in thread "main" org.apache.commons.math3.exception.OutOfRangeException: 1 out of [0, 1] rangeException in thread "main" org.apache.commons.math3.exception.OutOfRangeException: 1 out of [0, 1] range at org.apache.commons.math3.distribution.NormalDistribution.inverseCumulativeProbability(NormalDistribution.java:203) at org.apache.commons.math3.random.EmpiricalDistribution.inverseCumulativeProbability(EmpiricalDistribution.java:711) at stasiak.EmpiricalDistributionBugReproduction.main(EmpiricalDistributionBugReproduction.java:129)

      Attachments

        Activity

          People

            Unassigned Unassigned
            astasiak Andrzej Stasiak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: