Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1356

HypergeometricDistribution probability give NaN result

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6.1
    • Fix Version/s: 4.0
    • Labels:
      None
    • Environment:

      Windows

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tlacroix Lacroix Thomas
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: