-
Notifications
You must be signed in to change notification settings - Fork 81
Description
Greetings!
I am using Python. I followed the tutorial using jpype. The code below works when I set the histories and delays to 1.
My code:
`
cteClass = jpype.JPackage("infodynamics.measures.continuous.kraskov").ConditionalTransferEntropyCalculatorKraskov
cte = cteClass()
cte.initialise()
cte.setProperty(cte.K_PROP_NAME,'261')
cte.setProperty(cte.K_TAU_PROP_NAME,'10')
cte.setProperty(cte.L_PROP_NAME,'261')
cte.setProperty(cte.L_TAU_PROP_NAME,'10')
cte.setProperty(cte.DELAY_PROP_NAME,'1')
cte.setProperty(cte.COND_EMBED_LENGTHS_PROP_NAME,'261')
cte.setProperty(cte.COND_EMBED_DELAYS_PROP_NAME,'10')
cte.setProperty(cte.COND_DELAYS_PROP_NAME,'1')
cte.setObservations(jpype.JArray(jpype.JDouble, 1)(ts1),jpype.JArray(jpype.JDouble, 1)(ts2), jpype.JArray(jpype.JDouble, 1)(ts3))
`
The exception is:
java.lang.Exception: java.lang.Exception: Start point t=0 is too early for a 261 length embedding vector with delay 10
It also seems like something might be wrong if I try to set up the class using initialise. The method is exposed but the parameters I set don't seem to have any effect.