DelayEmbeddings.jl icon indicating copy to clipboard operation
DelayEmbeddings.jl copied to clipboard

Error in estimate_delay when using exp_decay

Open pucicu opened this issue 3 years ago • 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.

pucicu avatar Nov 24 '20 15:11 pucicu