Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8148481B6 for ; Fri, 12 Aug 2011 14:59:38 +0000 (UTC) Received: (qmail 92139 invoked by uid 500); 12 Aug 2011 14:59:36 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 91343 invoked by uid 500); 12 Aug 2011 14:59:35 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 91335 invoked by uid 99); 12 Aug 2011 14:59:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2011 14:59:34 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msayati@gmail.com designates 209.85.213.171 as permitted sender) Received: from [209.85.213.171] (HELO mail-yx0-f171.google.com) (209.85.213.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2011 14:59:28 +0000 Received: by yxk38 with SMTP id 38so2043453yxk.30 for ; Fri, 12 Aug 2011 07:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ROvUnV5Opv7ML75fyliqxi8v/XHFPUSLoXv9i4djUi0=; b=mvWSvEjewLbIjwSossBwlOHVT4aQQpmaFWvpYA9TqAa4dL1v0iGWtdvFXmKBqk4rsm Z/aP6brcAFbVPMjiPstWsezzAbDeovqfi65gQp5SY1KGksign0JR1mO2klsPnm8fao8F 6iYjrCwoOwgvmT6RUqI2rGABf3eJ7yckOKJlg= Received: by 10.101.170.15 with SMTP id x15mr1020502ano.85.1313161147352; Fri, 12 Aug 2011 07:59:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.96.16 with HTTP; Fri, 12 Aug 2011 07:58:47 -0700 (PDT) In-Reply-To: <4E445A2D.6030908@gmail.com> References: <20110811204527.GY18819@dusk.harfang.homelinux.org> <4E445A2D.6030908@gmail.com> From: Marzieh Ayati Date: Fri, 12 Aug 2011 10:58:47 -0400 Message-ID: Subject: Re: [MATH]: question about HypergeometricDistributionImpl class To: Commons Users List Content-Type: multipart/alternative; boundary=001636c928e4b8863804aa50279b --001636c928e4b8863804aa50279b Content-Type: text/plain; charset=UTF-8 Thanks for consideration. So can I suppose that this value is 1 or can I trust on other result? I was wondering to open JIRA ticket for this. Thanks On Thu, Aug 11, 2011 at 6:39 PM, Phil Steitz wrote: > On 8/11/11 3:21 PM, Marzieh Ayati wrote: > > HypergeometricDistributionImpl u = new > > HypergeometricDistributionImpl(14761461, 1035 ,1841 ); > > System.out.println(u.upperCumulativeProbability(0)); > > Thanks for reporting this. The value reported should obviously be > exactly 1. Due to limited precision in the approximation used to > compute the distribution, what is returned by the code now in trunk > (looks unchanged since 2.1) is 1.0000000000666514. Would you mind > opening a JIRA ticket for this? Thanks again for reporting the problem. > > Phil > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > -- Regards, Marzieh Ayati --001636c928e4b8863804aa50279b--