Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Operating System: Windows 2000
Platform: PC
-
36450
Description
Overview Description:
I get the following RunTimeException when loading data into an instance of
EmpiricalDistributionImpl:
java.lang.RuntimeException: Index: 1000, Size: 1000
at org.apache.commons.math.random.EmpiricalDistributionImpl.load
(EmpiricalDistributionImpl.java:111)
at BreakEmpiricalDistributionImpl.main(BreakEmpiricalDistributio
nImpl.java:7)
Exception in thread "main"
Here is a small program to reproduce the problem:
import org.apache.commons.math.random.EmpiricalDistributionImpl;
public class BreakEmpiricalDistributionImpl {
public static void main(String[] args) {
double[] x = new double[]
;
new EmpiricalDistributionImpl().load;
}
}
Build Date & Platform:
Build 2005-08-31 on Windows 2000 with Sun JDK 1.4.2_09
Additional Builds and Platforms: