You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2015/04/14 14:19:12 UTC

[jira] [Resolved] (MATH-1203) getKernel fails for buckets with only multiple instances of the same value in random.EmpiricalDistribution

     [ https://issues.apache.org/jira/browse/MATH-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Neidhart resolved MATH-1203.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.5
                   4.0

> 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
>             Fix For: 4.0, 3.5
>
>
> 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)