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

HypergeometricDistribution probability give NaN result

Rank to TopRank to BottomAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    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

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              Unassigned
              Reporter:
              tlacroix Lacroix Thomas

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment