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 C76E0109F5 for ; Sun, 8 Mar 2015 22:21:38 +0000 (UTC) Received: (qmail 94872 invoked by uid 500); 8 Mar 2015 22:21:38 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 94778 invoked by uid 500); 8 Mar 2015 22:21: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 94751 invoked by uid 99); 8 Mar 2015 22:21:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2015 22:21:38 +0000 Date: Sun, 8 Mar 2015 22:21:38 +0000 (UTC) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MATH-1203) getKernel fails for buckets with only multiple instances of the same value in random.EmpiricalDistribution 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-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352312#comment-14352312 ] Phil Steitz commented on MATH-1203: ----------------------------------- Thanks, Thomas! That looks like a different problem. Looking into it... Leaving this open for now. > getKernel fails for buckets with only multiple instances of the same value in random.EmpiricalDistribution > ---------------------------------------------------------------------------------------------------------- > > Key: MATH-1203 > URL: https://issues.apache.org/jira/browse/MATH-1203 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.4, 3.4.1 > Reporter: Kyle Kavanagh > > After loading a set of values into an EmpericalDistribution, assume that there's a case where a single bin ONLY contains multiple instances of the same value. In this case the standard deviation will equal zero. This will fail when getKernel attempts to create a NormalDistribution. The other case where stddev=0 is when there is only a single value in the bin, and this is handled by returning a ConstantRealDistribution rather than a NormalDistrbution. > See: https://issues.apache.org/jira/browse/MATH-984 -- This message was sent by Atlassian JIRA (v6.3.4#6332)