Skip to content

Vectorized implementations of sample entropy (SampEn) and approximate entropy (ApEn)

License

Notifications You must be signed in to change notification settings

bupianlizhugui/vectorized-sample-entropy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

vectorized-sample-entropy

Version 0.0.3

Vectorized implementations of sample entropy (SampEn) and approximate entropy (ApEn)

Dependencies: numpy>=1.11.2

To import:

from vectorizedsampleentropy import vectsampen as vse
from vectorizedsampleentropy import vectapen as vae

Functions:

vectsampen.condprob(L, m, r) # Calculates conditional probability A/B
vectsampen.sampen(L, m, r)   # Calculates sample entropy
vectsampen.qse(L, m, r)      # Calculates quadratic sample entropy
vectapen.apen(L, m, r)       # Calculates approximate entropy

Usage examples:

from vectorizedsampleentropy import vectsampen as vse
import numpy as np

L = np.random.normal(0, 1, 1000)
r = 0.2*np.std(L)
m = 1
vse.sampen(L, m, r)

About

Vectorized implementations of sample entropy (SampEn) and approximate entropy (ApEn)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%