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

EmpiricalDistribution.inverseCumulativeProbability throws OutOfRangeException incorrectly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.1
    • Fix Version/s: 4.0
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: