antropy
antropy copied to clipboard
AntroPy: entropy and complexity of (EEG) time-series in Python
Create a file called `import.py` with the single line `import antropy`. On my machine (Linux VM), this takes at least 10 seconds to run. Using `pyinstrument` tells me that most...
Hello, I've added `antropy` to `conda-forge`; please let me know if you'd like to be added as a co-maintainer for the respective feedstock. It could also make sense to amend...
Hi, I have used your package to process the ECG signal and it achieve good results on classify different heart disease. Thanks a lot! However, so far, these functions are...
My own implementation: import math import numpy as np from scipy.spatial.distance import pdist def sample_entropy(signal,m,r,dist_type='chebyshev', result = None, scale = None): # Check Errors if m > len(signal): raise ValueError('Embedding...
Currently, [antropy.spectral_entropy](https://raphaelvallat.com/antropy/build/html/generated/antropy.spectral_entropy.html#antropy.spectral_entropy) only allows ``x`` to be in time-domain. We should add ``freqs=None`` and ``psd=None`` as possible input if users want to calculate the spectral entropy of a pre-computed power...
The current implementation of katz_fd in antropy/fractal.py looks like the following: ```python def katz_fd(x, axis=-1): x = np.asarray(x) dists = np.abs(np.diff(x, axis=axis)) ll = dists.sum(axis=axis) ln = np.log10(ll / dists.mean(axis=axis))...
I always get error messages with the function "sample_entropy" that the types at _numba_sampen are not the correct ones: "No matching definition for argument type(s) readonly array(float64, 1d, C), int64,...
This demo, will get inf value ``` sss = np.array([5.9, 6.03, 5.97, 5.92, 5.93, 5.87, 5.89, 5.95, 6.06, 6.1, 6.06, 5.81, 5.78, 5.98, 5.89, 5.95, 6.02]) calc_value = ant.sample_entropy(sss) print(calc_value)...
Fixed Katz_FD implementation by utilizing Euclidean distances. Also modified test cases to include tests for new method.