I'm currently trying to calculate density on a dataset which consists of 585 double values.
First i created a new instance by:
DensityEstimator de = new DEDerivativeGaussian(bandwidth, scaledTime);
where bandwidth is a double, calculated by scotts rule and
scaledTime is a double array containing the 585 values, each value is between 0 and 1.
When calling
de.evalDensity(linspace);
an ArrayIndexOutOfBoundsException is thrown.
Original exception:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 200 at umontreal.ssj.stat.density.DEDerivativeGaussian.evalDensity(DEDerivativeGaussian.java:137) at modelseletion.MontrealDE.getPlotData(MontrealDE.java:21) at Main.main(Main.java:23)
linspace is a double array containing 200 values from 0 to 1 ascending in equal steps.
Calculating the density of a single value works perfectly fine.
I would propably try to fix it, as it seems to be an easy fix, but the project won't build locally and i currently don't have enough time.
I'm currently trying to calculate density on a dataset which consists of 585 double values. First i created a new instance by:
DensityEstimator de = new DEDerivativeGaussian(bandwidth, scaledTime);
wherebandwidth
is a double, calculated by scotts rule andscaledTime
is a double array containing the 585 values, each value is between 0 and 1.When calling
de.evalDensity(linspace);
an ArrayIndexOutOfBoundsException is thrown. Original exception:Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 200 at umontreal.ssj.stat.density.DEDerivativeGaussian.evalDensity(DEDerivativeGaussian.java:137) at modelseletion.MontrealDE.getPlotData(MontrealDE.java:21) at Main.main(Main.java:23)
linspace is a double array containing 200 values from 0 to 1 ascending in equal steps.Calculating the density of a single value works perfectly fine.
I would propably try to fix it, as it seems to be an easy fix, but the project won't build locally and i currently don't have enough time.