-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
sample_entropy some time is inf ? #35
Comments
I encountered the same problem. |
Thanks for opening the issue. I think it's because your timeseries does not have enough samples to reliably calculate the sample entropy. That said, I would recommend trying with the implementation of sample entropy in the neurokit2 package: https://github.com/neuropsychology/NeuroKit/blob/c1104386655724a5c624e740abf651c939fc5e48/neurokit2/complexity/entropy_sample.py#L6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This demo, will get inf value
I read the source code, it because
numerator == 0
The text was updated successfully, but these errors were encountered: