Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in DEDerivativeGaussian #42

Open
jdi128 opened this issue Jun 25, 2019 · 0 comments
Open

Bug in DEDerivativeGaussian #42

jdi128 opened this issue Jun 25, 2019 · 0 comments

Comments

@jdi128
Copy link

jdi128 commented Jun 25, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant