[
https://issues.apache.org/jira/browse/MATH-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17093031#comment-17093031
]
Gilles Sadowski commented on MATH-1531:
---------------------------------------
Thanks for the report.
Workaround has been added in commit bbfe7e4ea526e39ba0a79f0258200bc0d898f0de
("master" branch).
Review welcome.
> 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
> 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)