You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2019/11/22 16:38:00 UTC

[jira] [Resolved] (MATH-1503) cumulativeProbability of LevyDistribution returns NaN for values out of domain, while others return 0

     [ https://issues.apache.org/jira/browse/MATH-1503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles Sadowski resolved MATH-1503.
-----------------------------------
    Resolution: Won't Do

Thanks for the report.  I made the change in the ["Commons Statistics" project|http://commons.apache.org/proper/commons-statistics/] where the distributions now belong (most of the package {{o.a.c.m.stat.distribution}} has been moved there and will be removed from the next major version of Commons Math).

You are most welcome to review and test the ported code.

> cumulativeProbability of LevyDistribution returns NaN for values out of domain, while others return 0
> -----------------------------------------------------------------------------------------------------
>
>                 Key: MATH-1503
>                 URL: https://issues.apache.org/jira/browse/MATH-1503
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>            Reporter: WFR
>            Priority: Minor
>
> LevyDistribution.cumulativeProbability returns Double.NaN for values that are outside of its domain (x < mu in this case), while GammaDistribution returns 0.0 (for x <= 0). Both cases are hard-coded.{color:#ffc66d}
> {color}
> A consistent behaviour would be desirable.



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