-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
This error occurs because there is an array paaTest that is being populated which uses a fixed size of 32 entries.
When the window is smaller than 32 entries, populating this paaTest will result in access to an element which is beyond the end of the loaded window and it will thus cause an exception.
Here is the example output:
> java -Xmx8g -jar HIME_release.jar test-file.cv 30
Start Adaptive Parameter Selection a: 0.266616292 seconds at 78001
Adaptive Choosing: 11
Process End: 0.2873054 seconds at 78001
Alp: 11
Sliding Window: 30
Paa: 4
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 78001
at hime.discretization.TimeSeriesTokenize.discretize(TimeSeriesTokenize.java:265)
at hime.discretization.TimeSeriesTokenize.readTokens(TimeSeriesTokenize.java:83)
at hime.model.HIMEFactory.runHIME(HIMEFactory.java:61)
at Run.main(Run.java:37)
Exception in thread "main" java.lang.NullPointerException
at hime.model.HIMEFactory.runHIME(HIMEFactory.java:63)
at Run.main(Run.java:37)
I do not yet fully understand the purpose of paaTest so I don't know how to fix this myself.
My purpose for setting a very small window size is that I want to use HIME to try and analyse a time series for the presence of Motivs of varying sizes, some of these Motivs might be quite short.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels