Andrzej Stasiak created MATH-1531:
-------------------------------------

             Summary: EmpiricalDistribution.inverseCumulativeProbability throws 
OutOfRangeException incorrectly
                 Key: MATH-1531
                 URL: https://issues.apache.org/jira/browse/MATH-1531
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 3.6.1
            Reporter: Andrzej Stasiak
         Attachments: EmpiricalDistributionBugReproduction.java

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)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to