Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
3.2
-
None
-
None
-
Windows 7, Java 1.8
Description
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.
Attachments
Issue Links
- duplicates
-
MATH-1203 getKernel fails for buckets with only multiple instances of the same value in random.EmpiricalDistribution
- Closed