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

Gilles resolved MATH-1356.
--------------------------
       Resolution: Fixed
    Fix Version/s: 4.0

> HypergeometricDistribution probability give NaN result
> ------------------------------------------------------
>
>                 Key: MATH-1356
>                 URL: https://issues.apache.org/jira/browse/MATH-1356
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>         Environment: Windows
>            Reporter: Lacroix Thomas
>             Fix For: 4.0
>
>         Attachments: MATH-1356.patch
>
>
> Hi,
> Unless I am mistaken the HypergeometricDistribution probability method 
> returns NaN for the following cases :
> HypergeometricDistribution hgd = new HypergeometricDistribution(11,11,1);
> double probIT = hgd.probability(1);
> HypergeometricDistribution hgd = new HypergeometricDistribution(11,11,11);
> double probIT = hgd.probability(11);
> I think it should return 1.0
> Thanks,
> Thomas



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to