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 0CAFE17374 for ; Mon, 9 Mar 2015 02:42:44 +0000 (UTC) Received: (qmail 4802 invoked by uid 500); 9 Mar 2015 02:42:38 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 4701 invoked by uid 500); 9 Mar 2015 02:42:38 -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 4630 invoked by uid 99); 9 Mar 2015 02:42:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2015 02:42:38 +0000 Date: Mon, 9 Mar 2015 02:42:38 +0000 (UTC) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (MATH-1208) EmpiricalDistribution cumulativeProbability can return NaN when evaluated within a constant bin 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-1208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352457#comment-14352457 ] Phil Steitz edited comment on MATH-1208 at 3/9/15 2:42 AM: ----------------------------------------------------------- Fixed in master: b148046add84f6c5bd19aeceb10c1a0fcf2e1283 3.x: d41364faa4f73fc885dcc9e99a838e8fa4c95998 Fix was to eliminate interpolation within bin for bins having constant kernel distributions assigned. For any x within a bin with constant kernel, cumulativeProbability(x) is now the sum of the bin masses below the bin containing x plus the full mass of the bin to which x belongs. was (Author: psteitz): Fixed in master: b148046add84f6c5bd19aeceb10c1a0fcf2e1283 3.x: d41364faa4f73fc885dcc9e99a838e8fa4c95998 Fix was to eliminate interpolation within bin for bins having constant kernel distributions assigned. For any x within a bin with constant kernel, {code} cumulativeProbability(x) {code} is now the sum of the bin masses below the bin containing {code}x {code} plus the full mass of the bin to which x belongs. > EmpiricalDistribution cumulativeProbability can return NaN when evaluated within a constant bin > ----------------------------------------------------------------------------------------------- > > Key: MATH-1208 > URL: https://issues.apache.org/jira/browse/MATH-1208 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.4.1 > Reporter: Phil Steitz > Fix For: 4.0, 3.5 > > > If x belongs to a bin with no variance or to which a ConstantRealDistribution kernel has been assigned, cumulativeProbability(x) can return NaN. -- This message was sent by Atlassian JIRA (v6.3.4#6332)