pyEntropy icon indicating copy to clipboard operation
pyEntropy copied to clipboard

Sample Entropy not same value

Open allran opened this issue 1 year ago • 1 comments

I compared the libraries:antropy, pyentrp, EntropyHub。 For example, calculate Sample Entropy, all not the same value。 Isn't the algorithm the same?

import antropy as ant
entropy1_5 = ant.sample_entropy(X)

from pyentrp import entropy as ent
entropy2_2 = ent.sample_entropy(X, 2)

import EntropyHub as EH
Samp, _, _ = EH.SampEn(X)

allran avatar Aug 08 '24 07:08 allran

I believe the differences in Sample Entropy values are due to variations in how each library implements the algorithm. You might want to check if the parameters you're passing are consistent across the libraries. There might be some small numerical differences as well.

nikdon avatar Aug 12 '24 08:08 nikdon