Open daroodar opened 6 years ago
To my knowledge, you have to normalize the data before using sampen2 on the time-series data [1, 2].
from sampen import sampen2, normalize_data a=[2.3,5.5,7.9,3.2,9.2,2.3,8.8,6.6,4.4,3.8,9.3,2.8,10.3,11.3,4.75] sampen2(normalize_data(a))
[1] Richman, Joshua S., and J. Randall Moorman. "Physiological time-series analysis using approximate entropy and sample entropy." American Journal of Physiology-Heart and Circulatory Physiology 278.6 (2000): H2039-H2049. [2] Costa, Madalena, Ary L. Goldberger, and C-K. Peng. "Multiscale entropy analysis of biological signals." Physical review E 71.2 (2005): 021906.
NOTE: This is using python
When I give a sample array in python as
It gives this error:
I am using Python 2.7 What seems to be the issue?