You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sergii Nechuiviter (JIRA)" <ji...@apache.org> on 2015/06/17 15:33:00 UTC
[jira] [Created] (MATH-1234) Impossible
NotStrictlyPositiveException after getStandardDeviation()
Sergii Nechuiviter created MATH-1234:
----------------------------------------
Summary: Impossible NotStrictlyPositiveException after getStandardDeviation()
Key: MATH-1234
URL: https://issues.apache.org/jira/browse/MATH-1234
Project: Commons Math
Issue Type: Bug
Affects Versions: 3.2
Environment: Windows 7, Java 1.8
Reporter: Sergii Nechuiviter
org.apache.commons.math3.random.EmpiricalDistribution.density() calls
EmpiricalDistribution.getKernel which calls
bStats.getStandardDeviation() -- bStats is SummaryStatistics
and return result caused NotStrictlyPositiveException: standard deviation (0)
in new NormalDistribution(randomData.getRandomGenerator(),
bStats.getMean(), bStats.getStandardDeviation(),
NormalDistribution.DEFAULT_INVERSE_ABSOLUTE_ACCURACY);
As I understand, it shouldn't be so by contract of SummaryStatistics.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)