A Python 3 package providing several time-efficient algorithms
AntroPy AntroPy is a Python 3 package providing several time-efficient algorithms for computing the complexity of time-series. It can be used for example to extract features from EEG signals. Installation pip install antropy Functions Entropy import numpy as np import antropy as ant np.random.seed(1234567) x = np.random.normal(size=3000) # Permutation entropy print(ant.perm_entropy(x, normalize=True)) # Spectral entropy print(ant.spectral_entropy(x, sf=100, method=’welch’, normalize=True)) # Singular value decomposition entropy print(ant.svd_entropy(x, normalize=True)) # Approximate entropy print(ant.app_entropy(x)) # Sample entropy print(ant.sample_entropy(x)) # Hjorth mobility and complexity print(ant.hjorth_params(x)) […]
Read more