Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 58685 invoked from network); 6 Mar 2011 15:17:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Mar 2011 15:17:49 -0000 Received: (qmail 3434 invoked by uid 500); 6 Mar 2011 15:17:49 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 3387 invoked by uid 500); 6 Mar 2011 15:17:48 -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 3379 invoked by uid 99); 6 Mar 2011 15:17:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Mar 2011 15:17:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Mar 2011 15:17:46 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 200685A658 for ; Sun, 6 Mar 2011 15:17:25 +0000 (UTC) Date: Sun, 6 Mar 2011 15:17:25 +0000 (UTC) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Message-ID: <610316041.107.1299424645127.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <479334639.1378.1299372345979.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (MATH-540) AbstractIntegerDistribution.inverseCumulativeProbability(...) Bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MATH-540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003178#comment-13003178 ] Phil Steitz commented on MATH-540: ---------------------------------- Reading your last comment a little more carefully, it looks like what you are trying to do is implement sampling. IIUC, something like what you are suggesting should work - you just have an off-by-one problem vis-s-vis the contract of inverse cumulative probabilities as we define them. I would be +1 for adding direct support for sampling from discrete distributions, but we should open a separate ticket for that. > AbstractIntegerDistribution.inverseCumulativeProbability(...) Bug > ----------------------------------------------------------------- > > Key: MATH-540 > URL: https://issues.apache.org/jira/browse/MATH-540 > Project: Commons Math > Issue Type: Bug > Affects Versions: 2.1 > Reporter: Ole Ersoy > Fix For: 3.0 > > Attachments: DummyDiscreteDistribution.java, DummyDiscreteDistributionTest.java > > > The AbstractIntegerDistribution.inverseCumulativeProbability(...) function attempts to decrement the lower bound of discrete distributions to values that go below the lower bound. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira