JuliaDynamics/DelayEmbeddings.jl

Error in estimate_delay when using exp_decay

pucicu opened this issue · 1 comments

The function lag = estimate_delay(tr, "exp_decay", 0:100) can throw an error of the type

ERROR: The correlation function has elements that are ≤ 0. We can't fit an exponential to it. Please choose another method.

It is clear what it means (and the error can be avoided when using a shorter delay interval), but in my opinion it would be better to catch the situation where auto-correlation values could be negative and to truncate the auto-correlation function to the interval of positive values.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Ah okay, that's a fair and straightforward improvement.