Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the sample entropy of a time series
ResourceFunction["SampleEntropy"][timeseries,emdim,rfilt] computes the sample entropy of the timeseries with embedding dimension emdim and filtering factor rfilt. |
Show the sample entropy of a time series from a uniform distribution of real numbers:
| In[1]:= | ![]() |
| Out[3]= |
Set up a nonlinear time series in the periodic regime for the logistic map:
| In[4]:= | ![]() |
Show it:
| In[5]:= | ![]() |
| Out[5]= | ![]() |
Verify the SampleEntropy of the periodic time series is zero:
| In[6]:= | ![]() |
| Out[8]= |
Change the λ parameter in the logistic map model to set up a chaotic time series:
| In[9]:= |
Show it:
| In[10]:= | ![]() |
| Out[10]= | ![]() |
Verify the SampleEntropy of the nonlinear chaotic time series is nonzero:
| In[11]:= |
| In[12]:= |
| Out[12]= |
Show the sample entropy of a time series from a uniform distribution of real numbers with the delay set to τ = 2:
| In[13]:= | ![]() |
| Out[14]= |
Show the sample entropy results computed for two ECG signals taken from Wolfram Documentation:
| In[15]:= | ![]() |
| Out[16]= | ![]() |
| In[17]:= | ![]() |
| Out[18]= |
Sample entropy of a linearly increasing time series is zero:
| In[19]:= | ![]() |
| Out[20]= |
Sample entropy of a pure sine wave:
| In[21]:= | ![]() |
| Out[15]= |
Sample entropy of a time series sampled from a normal distribution:
| In[22]:= | ![]() |
| Out[23]= |
Sample entropy of gaussian fractional noise with Hurst exponential H = 0.5:
| In[24]:= | ![]() |
| Out[25]= |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License