Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E084319449 for ; Wed, 13 Apr 2016 14:57:25 +0000 (UTC) Received: (qmail 44924 invoked by uid 500); 13 Apr 2016 14:57:25 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 44806 invoked by uid 500); 13 Apr 2016 14:57:25 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 44752 invoked by uid 99); 13 Apr 2016 14:57:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2016 14:57:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7E1702C1F5D for ; Wed, 13 Apr 2016 14:57:25 +0000 (UTC) Date: Wed, 13 Apr 2016 14:57:25 +0000 (UTC) From: "Gilles (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MATH-1356) HypergeometricDistribution probability give NaN result MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-1356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gilles updated MATH-1356: ------------------------- Priority: Major (was: Minor) > 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 > > 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)