[
https://issues.apache.org/jira/browse/MATH-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gilles Sadowski resolved MATH-1531.
-----------------------------------
Fix Version/s: 4.0
Resolution: Fixed
> 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
> Priority: Major
> Fix For: 4.0
>
> 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)