diff --git a/docs/build/html/_modules/antropy/entropy.html b/docs/build/html/_modules/antropy/entropy.html index 599cc08..2301e02 100644 --- a/docs/build/html/_modules/antropy/entropy.html +++ b/docs/build/html/_modules/antropy/entropy.html @@ -401,7 +401,7 @@

Source code for antropy.entropy

 
     The permutation entropy of a signal :math:`x` is defined as:
 
-    .. math:: H = -\\sum p(\\pi)\\log_2(\\pi)
+    .. math:: H = -\\sum p(\\pi)\\log_2 p(\\pi)
 
     where the sum runs over all :math:`n!` permutations :math:`\\pi` of order
     :math:`n`. This is the information contained in comparing :math:`n`
@@ -514,10 +514,12 @@ 

Source code for antropy.entropy

         * ``'welch'`` : Welch periodogram (:py:func:`scipy.signal.welch`)
     nperseg : int or None
         Length of each FFT segment for Welch method.
-        If None (default), uses scipy default of 256 samples.
+        If None (default), uses scipy's default (256 samples, or the length
+        of the signal if shorter).
     normalize : bool
-        If True, divide by log2(psd.size) to normalize the spectral entropy
-        between 0 and 1. Otherwise, return the spectral entropy in bit.
+        If True, divide by log2(number of frequency bins) to normalize the
+        spectral entropy between 0 and 1. Otherwise, return the spectral
+        entropy in bit.
     axis : int
         The axis along which the entropy is calculated. Default is -1 (last).
 
@@ -629,8 +631,8 @@ 

Source code for antropy.entropy

     delay : int
         Time delay (lag). Default is 1.
     normalize : bool
-        If True, divide by log2(order!) to normalize the entropy between 0
-        and 1. Otherwise, return the permutation entropy in bit.
+        If True, divide by log2(order) to normalize the entropy between 0
+        and 1. Otherwise, return the SVD entropy in bit.
 
     Returns
     -------
@@ -836,6 +838,7 @@ 

Source code for antropy.entropy

         :py:class:`sklearn.neighbors.KDTree`. Default is to use the
         `Chebyshev <https://en.wikipedia.org/wiki/Chebyshev_distance>`_
         distance.
+
     Returns
     -------
     ae : float
@@ -962,8 +965,8 @@ 

Source code for antropy.entropy

     :math:`C(m + 1, r)` is the number of embedded vectors of length
     :math:`m + 1` having a
     `Chebyshev distance <https://en.wikipedia.org/wiki/Chebyshev_distance>`_
-    inferior to :math:`r` and :math:`C(m, r)` is the number of embedded
-    vectors of length :math:`m` having a Chebyshev distance inferior to
+    less than :math:`r` and :math:`C(m, r)` is the number of embedded
+    vectors of length :math:`m` having a Chebyshev distance less than
     :math:`r`.
 
     Note that if ``metric == 'chebyshev'`` and ``len(x) < 5000`` points,
@@ -1096,14 +1099,14 @@ 

Source code for antropy.entropy

 [docs]
 def lziv_complexity(sequence, normalize=False):
     """
-    Lempel-Ziv (LZ) complexity of (binary) sequence.
+    Lempel-Ziv (LZ) complexity of a sequence.
 
     .. versionadded:: 0.1.1
 
     Parameters
     ----------
     sequence : str or array
-        A sequence of character, e.g. ``'1001111011000010'``,
+        A sequence of characters, e.g. ``'1001111011000010'``,
         ``[0, 1, 0, 1, 1]``, or ``'Hello World!'``.
     normalize : bool
         If ``True``, returns the normalized LZ (see Notes).
@@ -1119,7 +1122,7 @@ 

Source code for antropy.entropy

     Notes
     -----
     LZ complexity is defined as the number of different substrings encountered
-    as the sequence is viewed from begining to the end.
+    as the sequence is viewed from beginning to the end.
 
     Although the raw LZ is an important complexity indicator, it is heavily
     influenced by sequence length (longer sequence will result in higher LZ).
@@ -1220,7 +1223,7 @@ 

Source code for antropy.entropy

 def num_zerocross(x, normalize=False, axis=-1):
     """Number of zero-crossings.
 
-    .. versionadded: 0.1.3
+    .. versionadded:: 0.1.3
 
     Parameters
     ----------
@@ -1309,7 +1312,7 @@ 

Source code for antropy.entropy

 def hjorth_params(x, axis=-1):
     """Calculate Hjorth mobility and complexity on given axis.
 
-    .. versionadded: 0.1.3
+    .. versionadded:: 0.1.3
 
     Parameters
     ----------
@@ -1327,7 +1330,7 @@ 

Source code for antropy.entropy

     -----
     Hjorth Parameters are indicators of statistical properties used in signal
     processing in the time domain introduced by Bo Hjorth in 1970. The
-    parameters are activity, mobility, and complexity. EntroPy only returns the
+    parameters are activity, mobility, and complexity. AntroPy only returns the
     mobility and complexity parameters, since activity is simply the variance
     of :math:`x`, which can be computed easily with :py:func:`numpy.var`.
 
diff --git a/docs/build/html/_modules/antropy/fractal.html b/docs/build/html/_modules/antropy/fractal.html
index d35ecf1..2243613 100644
--- a/docs/build/html/_modules/antropy/fractal.html
+++ b/docs/build/html/_modules/antropy/fractal.html
@@ -603,6 +603,25 @@ 

Source code for antropy.fractal

 
     Notes
     -----
+    For each interval :math:`k` from 1 to ``kmax``, :math:`k` sub-series are
+    constructed from the signal :math:`x` of length :math:`N`. Letting
+    :math:`N_m = \\lfloor (N-m)/k \\rfloor`, the normalised length for each
+    sub-series starting at :math:`m` is:
+
+    .. math::
+
+        L_m(k) = \\frac{N-1}{k^2 \\cdot N_m}
+        \\sum_{j=1}^{N_m - 1} |x_{m+jk} - x_{m+(j-1)k}|
+
+    and the average length across all :math:`k` sub-series is:
+
+    .. math:: L(k) = \\frac{1}{k} \\sum_{m=1}^{k} L_m(k)
+
+    The fractal dimension is then estimated as the slope of the linear
+    regression of :math:`\\log L(k)` against :math:`\\log(1/k)`:
+
+    .. math:: \\text{FD} = \\frac{d \\log L(k)}{d \\log(1/k)}
+
     Original code from the `mne-features <https://mne.tools/mne-features/>`_
     package by Jean-Baptiste Schiratti and Alexandre Gramfort.
 
@@ -614,6 +633,13 @@ 

Source code for antropy.fractal

     basis of the fractal theory." Physica D: Nonlinear Phenomena 31.2
     (1988): 277-283.
 
+    Esteller, R. et al. (2001). A comparison of waveform fractal dimension
+    algorithms. IEEE Transactions on Circuits and Systems I: Fundamental
+    Theory and Applications, 48(2), 177-183.
+
+    Paivinen, N. et al. (2005). Epileptic seizure detection: A nonlinear
+    viewpoint. Computer methods and programs in biomedicine, 79(2), 151-159.
+
     Examples
     --------
     >>> import numpy as np
@@ -712,14 +738,14 @@ 

Source code for antropy.fractal

     Returns
     -------
     alpha : float
-        the estimate alpha (:math:`\\alpha`) for the Hurst parameter.
+        The estimated scaling exponent :math:`\\alpha` (related to the Hurst
+        parameter).
 
-        :math:`\\alpha < 1`` indicates a
-        stationary process similar to fractional Gaussian noise with
-        :math:`H = \\alpha`.
+        :math:`\\alpha < 1` indicates a stationary process similar to
+        fractional Gaussian noise with :math:`H = \\alpha`.
 
-        :math:`\\alpha > 1`` indicates a non-stationary process similar to
-        fractional Brownian motion with :math:`H = \\alpha - 1`
+        :math:`\\alpha > 1` indicates a non-stationary process similar to
+        fractional Brownian motion with :math:`H = \\alpha - 1`.
 
     Notes
     -----
@@ -737,16 +763,16 @@ 

Source code for antropy.fractal

     where :math:`\\text{std}(X, k)` is the standard deviation of the process
     :math:`X` calculated over windows of size :math:`k`. In this equation,
     :math:`H` is called the Hurst parameter, which behaves indeed very similar
-    to the Hurst exponant.
+    to the Hurst exponent.
 
     For more details, please refer to the excellent documentation of the
     `nolds <https://cschoel.github.io/nolds/>`_
     Python package by Christopher Scholzel, from which this function is taken:
     https://cschoel.github.io/nolds/nolds.html#detrended-fluctuation-analysis
 
-    Note that the default subseries size is set to
-    entropy.utils._log_n(4, 0.1 * len(x), 1.2)). The current implementation
-    does not allow to manually specify the subseries size or use overlapping
+    Note that the subseries sizes range from 4 to 10% of the signal length,
+    spaced geometrically by a factor of 1.2. The current implementation does
+    not allow to manually specify the subseries sizes or use overlapping
     windows.
 
     The code is a faster (Numba) adaptation of the original code by Christopher
diff --git a/docs/build/html/generated/antropy.app_entropy.html b/docs/build/html/generated/antropy.app_entropy.html
index 0993567..8e7e07c 100644
--- a/docs/build/html/generated/antropy.app_entropy.html
+++ b/docs/build/html/generated/antropy.app_entropy.html
@@ -373,8 +373,10 @@ 

antropy.app_entropyChebyshev distance.

-
Returns
-
——-
+ + +
Returns:
+
aefloat

Approximate Entropy.

diff --git a/docs/build/html/generated/antropy.detrended_fluctuation.html b/docs/build/html/generated/antropy.detrended_fluctuation.html index 17898ba..0a4bb3d 100644 --- a/docs/build/html/generated/antropy.detrended_fluctuation.html +++ b/docs/build/html/generated/antropy.detrended_fluctuation.html @@ -367,12 +367,12 @@

antropy.detrended_fluctuationReturns:
-
alphafloat

the estimate alpha (\(\alpha\)) for the Hurst parameter.

-

\(\alpha < 1`\) indicates a -stationary process similar to fractional Gaussian noise with -\(H = \alpha\).

-

\(\alpha > 1`\) indicates a non-stationary process similar to -fractional Brownian motion with \(H = \alpha - 1\)

+
alphafloat

The estimated scaling exponent \(\alpha\) (related to the Hurst +parameter).

+

\(\alpha < 1\) indicates a stationary process similar to +fractional Gaussian noise with \(H = \alpha\).

+

\(\alpha > 1\) indicates a non-stationary process similar to +fractional Brownian motion with \(H = \alpha - 1\).

@@ -389,14 +389,14 @@

antropy.detrended_fluctuation\(\text{std}(X, k)\) is the standard deviation of the process \(X\) calculated over windows of size \(k\). In this equation, \(H\) is called the Hurst parameter, which behaves indeed very similar -to the Hurst exponant.

+to the Hurst exponent.

For more details, please refer to the excellent documentation of the nolds Python package by Christopher Scholzel, from which this function is taken: https://cschoel.github.io/nolds/nolds.html#detrended-fluctuation-analysis

-

Note that the default subseries size is set to -entropy.utils._log_n(4, 0.1 * len(x), 1.2)). The current implementation -does not allow to manually specify the subseries size or use overlapping +

Note that the subseries sizes range from 4 to 10% of the signal length, +spaced geometrically by a factor of 1.2. The current implementation does +not allow to manually specify the subseries sizes or use overlapping windows.

The code is a faster (Numba) adaptation of the original code by Christopher Scholzel.

diff --git a/docs/build/html/generated/antropy.higuchi_fd.html b/docs/build/html/generated/antropy.higuchi_fd.html index 366e435..e63d6c9 100644 --- a/docs/build/html/generated/antropy.higuchi_fd.html +++ b/docs/build/html/generated/antropy.higuchi_fd.html @@ -46,6 +46,7 @@ + @@ -374,6 +375,20 @@

antropy.higuchi_fdNotes

+

For each interval \(k\) from 1 to kmax, \(k\) sub-series are +constructed from the signal \(x\) of length \(N\). Letting +\(N_m = \lfloor (N-m)/k \rfloor\), the normalised length for each +sub-series starting at \(m\) is:

+
+\[L_m(k) = \frac{N-1}{k^2 \cdot N_m} +\sum_{j=1}^{N_m - 1} |x_{m+jk} - x_{m+(j-1)k}|\]
+

and the average length across all \(k\) sub-series is:

+
+\[L(k) = \frac{1}{k} \sum_{m=1}^{k} L_m(k)\]
+

The fractal dimension is then estimated as the slope of the linear +regression of \(\log L(k)\) against \(\log(1/k)\):

+
+\[\text{FD} = \frac{d \log L(k)}{d \log(1/k)}\]

Original code from the mne-features package by Jean-Baptiste Schiratti and Alexandre Gramfort.

This function uses Numba to speed up the computation.

@@ -381,6 +396,11 @@

antropy.higuchi_fdExamples

>>> import numpy as np
 >>> import antropy as ant
diff --git a/docs/build/html/generated/antropy.hjorth_params.html b/docs/build/html/generated/antropy.hjorth_params.html
index a2d6c53..a7ad371 100644
--- a/docs/build/html/generated/antropy.hjorth_params.html
+++ b/docs/build/html/generated/antropy.hjorth_params.html
@@ -358,6 +358,9 @@ 

antropy.hjorth_params antropy.hjorth_params(x, axis=-1)[source]#

Calculate Hjorth mobility and complexity on given axis.

+
+

Added in version 0.1.3.

+
Parameters:
@@ -377,7 +380,7 @@

antropy.hjorth_paramsNotes

Hjorth Parameters are indicators of statistical properties used in signal processing in the time domain introduced by Bo Hjorth in 1970. The -parameters are activity, mobility, and complexity. EntroPy only returns the +parameters are activity, mobility, and complexity. AntroPy only returns the mobility and complexity parameters, since activity is simply the variance of \(x\), which can be computed easily with numpy.var().

The mobility parameter represents the mean frequency or the proportion diff --git a/docs/build/html/generated/antropy.lziv_complexity.html b/docs/build/html/generated/antropy.lziv_complexity.html index 6e8c47b..3c58a05 100644 --- a/docs/build/html/generated/antropy.lziv_complexity.html +++ b/docs/build/html/generated/antropy.lziv_complexity.html @@ -357,14 +357,14 @@

antropy.lziv_complexity
antropy.lziv_complexity(sequence, normalize=False)[source]#
-

Lempel-Ziv (LZ) complexity of (binary) sequence.

+

Lempel-Ziv (LZ) complexity of a sequence.

Added in version 0.1.1.

Parameters:
-
sequencestr or array

A sequence of character, e.g. '1001111011000010', +

sequencestr or array

A sequence of characters, e.g. '1001111011000010', [0, 1, 0, 1, 1], or 'Hello World!'.

normalizebool

If True, returns the normalized LZ (see Notes).

@@ -383,7 +383,7 @@

antropy.lziv_complexity

Notes

LZ complexity is defined as the number of different substrings encountered -as the sequence is viewed from begining to the end.

+as the sequence is viewed from beginning to the end.

Although the raw LZ is an important complexity indicator, it is heavily influenced by sequence length (longer sequence will result in higher LZ). Zhang and colleagues (2009) have therefore proposed the normalized LZ, diff --git a/docs/build/html/generated/antropy.num_zerocross.html b/docs/build/html/generated/antropy.num_zerocross.html index e8d4afe..b39b621 100644 --- a/docs/build/html/generated/antropy.num_zerocross.html +++ b/docs/build/html/generated/antropy.num_zerocross.html @@ -357,6 +357,9 @@

antropy.num_zerocross antropy.num_zerocross(x, normalize=False, axis=-1)[source]#

Number of zero-crossings.

+
+

Added in version 0.1.3.

+
Parameters:
diff --git a/docs/build/html/generated/antropy.perm_entropy.html b/docs/build/html/generated/antropy.perm_entropy.html index 8a92ab6..542a113 100644 --- a/docs/build/html/generated/antropy.perm_entropy.html +++ b/docs/build/html/generated/antropy.perm_entropy.html @@ -386,7 +386,7 @@

antropy.perm_entropy

The permutation entropy of a signal \(x\) is defined as:

-\[H = -\sum p(\pi)\log_2(\pi)\]
+\[H = -\sum p(\pi)\log_2 p(\pi)\]

where the sum runs over all \(n!\) permutations \(\pi\) of order \(n\). This is the information contained in comparing \(n\) consecutive values of the time series. It is clear that diff --git a/docs/build/html/generated/antropy.sample_entropy.html b/docs/build/html/generated/antropy.sample_entropy.html index 0793981..5ec2da8 100644 --- a/docs/build/html/generated/antropy.sample_entropy.html +++ b/docs/build/html/generated/antropy.sample_entropy.html @@ -396,8 +396,8 @@

antropy.sample_entropy\(C(m + 1, r)\) is the number of embedded vectors of length \(m + 1\) having a Chebyshev distance -inferior to \(r\) and \(C(m, r)\) is the number of embedded -vectors of length \(m\) having a Chebyshev distance inferior to +less than \(r\) and \(C(m, r)\) is the number of embedded +vectors of length \(m\) having a Chebyshev distance less than \(r\).

Note that if metric == 'chebyshev' and len(x) < 5000 points, then the sample entropy is computed using a fast custom Numba script. diff --git a/docs/build/html/generated/antropy.spectral_entropy.html b/docs/build/html/generated/antropy.spectral_entropy.html index 4be4323..0943f93 100644 --- a/docs/build/html/generated/antropy.spectral_entropy.html +++ b/docs/build/html/generated/antropy.spectral_entropy.html @@ -372,10 +372,12 @@

antropy.spectral_entropyint or None

Length of each FFT segment for Welch method. -If None (default), uses scipy default of 256 samples.

+If None (default), uses scipy’s default (256 samples, or the length +of the signal if shorter).

-
normalizebool

If True, divide by log2(psd.size) to normalize the spectral entropy -between 0 and 1. Otherwise, return the spectral entropy in bit.

+
normalizebool

If True, divide by log2(number of frequency bins) to normalize the +spectral entropy between 0 and 1. Otherwise, return the spectral +entropy in bit.

axisint

The axis along which the entropy is calculated. Default is -1 (last).

diff --git a/docs/build/html/generated/antropy.svd_entropy.html b/docs/build/html/generated/antropy.svd_entropy.html index 18d47e2..04b0cc7 100644 --- a/docs/build/html/generated/antropy.svd_entropy.html +++ b/docs/build/html/generated/antropy.svd_entropy.html @@ -368,8 +368,8 @@

antropy.svd_entropyint

Time delay (lag). Default is 1.

-
normalizebool

If True, divide by log2(order!) to normalize the entropy between 0 -and 1. Otherwise, return the permutation entropy in bit.

+
normalizebool

If True, divide by log2(order) to normalize the entropy between 0 +and 1. Otherwise, return the SVD entropy in bit.

diff --git a/docs/build/html/searchindex.js b/docs/build/html/searchindex.js index 564fa5b..4b48dd7 100644 --- a/docs/build/html/searchindex.js +++ b/docs/build/html/searchindex.js @@ -1 +1 @@ -Search.setIndex({"alltitles":{"API reference":[[0,null]],"Acknowledgement":[[15,"acknowledgement"]],"Contributing":[[2,null]],"Dependencies":[[15,"dependencies"]],"Development":[[15,"development"],[15,"id2"]],"Entropy":[[0,"entropy"]],"Fractal dimension":[[0,"fractal-dimension"]],"Functions":[[15,"functions"]],"Installation":[[15,null]],"Questions":[[2,"questions"]],"Reporting bugs":[[2,"reporting-bugs"]],"Submitting a pull request":[[2,"submitting-a-pull-request"]],"User installation":[[15,"user-installation"]],"What\u2019s new":[[1,null]],"antropy.app_entropy":[[3,null]],"antropy.detrended_fluctuation":[[4,null]],"antropy.higuchi_fd":[[5,null]],"antropy.hjorth_params":[[6,null]],"antropy.katz_fd":[[7,null]],"antropy.lziv_complexity":[[8,null]],"antropy.num_zerocross":[[9,null]],"antropy.perm_entropy":[[10,null]],"antropy.petrosian_fd":[[11,null]],"antropy.sample_entropy":[[12,null]],"antropy.spectral_entropy":[[13,null]],"antropy.svd_entropy":[[14,null]],"v0.1.0 (October 2018)":[[1,"v0-1-0-october-2018"]],"v0.1.1 (November 2019)":[[1,"v0-1-1-november-2019"]],"v0.1.2 (May 2020)":[[1,"v0-1-2-may-2020"]],"v0.1.3 (March 2021)":[[1,"v0-1-3-march-2021"]],"v0.1.4 (April 2021)":[[1,"v0-1-4-april-2021"]],"v0.1.5 (December 2022)":[[1,"v0-1-5-december-2022"]],"v0.1.6 (July 2023)":[[1,"v0-1-6-july-2023"]],"v0.1.7 (December 2024)":[[1,"v0-1-7-december-2024"]],"v0.1.8 (December 2024)":[[1,"v0-1-8-december-2024"]],"v0.1.9 (February 2025)":[[1,"v0-1-9-february-2025"]],"v0.2.0 (March 2026)":[[1,"v0-2-0-march-2026"]]},"docnames":["api","changelog","contributing","generated/antropy.app_entropy","generated/antropy.detrended_fluctuation","generated/antropy.higuchi_fd","generated/antropy.hjorth_params","generated/antropy.katz_fd","generated/antropy.lziv_complexity","generated/antropy.num_zerocross","generated/antropy.perm_entropy","generated/antropy.petrosian_fd","generated/antropy.sample_entropy","generated/antropy.spectral_entropy","generated/antropy.svd_entropy","index"],"envversion":{"sphinx":65,"sphinx.domains.c":3,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":9,"sphinx.domains.index":1,"sphinx.domains.javascript":3,"sphinx.domains.math":2,"sphinx.domains.python":4,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.intersphinx":1,"sphinx.ext.viewcode":1},"filenames":["api.rst","changelog.rst","contributing.rst","generated/antropy.app_entropy.rst","generated/antropy.detrended_fluctuation.rst","generated/antropy.higuchi_fd.rst","generated/antropy.hjorth_params.rst","generated/antropy.katz_fd.rst","generated/antropy.lziv_complexity.rst","generated/antropy.num_zerocross.rst","generated/antropy.perm_entropy.rst","generated/antropy.petrosian_fd.rst","generated/antropy.sample_entropy.rst","generated/antropy.spectral_entropy.rst","generated/antropy.svd_entropy.rst","index.rst"],"indexentries":{"app_entropy() (in module antropy)":[[3,"antropy.app_entropy",false]],"detrended_fluctuation() (in module antropy)":[[4,"antropy.detrended_fluctuation",false]],"higuchi_fd() (in module antropy)":[[5,"antropy.higuchi_fd",false]],"hjorth_params() (in module antropy)":[[6,"antropy.hjorth_params",false]],"katz_fd() (in module antropy)":[[7,"antropy.katz_fd",false]],"lziv_complexity() (in module antropy)":[[8,"antropy.lziv_complexity",false]],"num_zerocross() (in module antropy)":[[9,"antropy.num_zerocross",false]],"perm_entropy() (in module antropy)":[[10,"antropy.perm_entropy",false]],"petrosian_fd() (in module antropy)":[[11,"antropy.petrosian_fd",false]],"sample_entropy() (in module antropy)":[[12,"antropy.sample_entropy",false]],"spectral_entropy() (in module antropy)":[[13,"antropy.spectral_entropy",false]],"svd_entropy() (in module antropy)":[[14,"antropy.svd_entropy",false]]},"objects":{"antropy":[[3,0,1,"","app_entropy"],[4,0,1,"","detrended_fluctuation"],[5,0,1,"","higuchi_fd"],[6,0,1,"","hjorth_params"],[7,0,1,"","katz_fd"],[8,0,1,"","lziv_complexity"],[9,0,1,"","num_zerocross"],[10,0,1,"","perm_entropy"],[11,0,1,"","petrosian_fd"],[12,0,1,"","sample_entropy"],[13,0,1,"","spectral_entropy"],[14,0,1,"","svd_entropy"]]},"objnames":{"0":["py","function","Python function"]},"objtypes":{"0":"py:function"},"terms":{"":[2,3,4,7,8,12,13],"0":[3,4,5,6,7,8,9,10,11,12,13,14,15],"0000":[7,10,11,12,14],"0010":[3,8,11],"0013":5,"0040":5,"00442374":7,"005":6,"005040632258251":15,"0053":14,"008":8,"0091":5,"01":8,"01111000011001":15,"015221318528564":15,"0235":11,"0264":11,"0283":11,"0310643385753608":15,"0350":11,"0390":4,"0555":12,"0581":5,"0627":6,"0717":6,"0906":3,"1":[3,4,5,6,7,8,9,10,11,12,13,14,15],"10":[1,5,6,7,8,10,11,14,15],"100":[1,3,4,5,6,7,9,10,11,12,13,14,15],"1000":[3,4,5,7,10,11,12,14],"10000":[3,4,5,6,7,9,10,11,12,13,14],"1001111011000010":8,"1007":8,"1016":6,"1055501":8,"11":[8,10,14],"1100":8,"1109":8,"1110":8,"1203":8,"1212":8,"12345":1,"1234567":15,"1262":4,"13":1,"1457":9,"1499":9,"1528":9,"1531":[7,15],"1547":9,"1633":12,"17":10,"174102":10,"1775":14,"1819":12,"1958":3,"1970":6,"1976":8,"198595813245399":15,"1988":5,"1991":13,"1994":4,"1995":11,"1d":[6,7,9,11,13],"2":[3,4,5,6,7,8,9,10,11,12,13,14,15],"2000":[3,12],"2002":10,"2005":11,"2009":[3,8],"2011":7,"2012":4,"2017":12,"204":13,"210":13,"21092261":6,"212":11,"215335712274099":15,"217":11,"217278":6,"21877527":6,"22":[1,8,15],"22623163":6,"2283":6,"23":1,"25":1,"256":13,"26":8,"2615":9,"277":5,"278":[3,12],"27s_method":13,"283":5,"2870":6,"2990143":6,"2d":[6,9,13],"2f0013":6,"2nd":11,"3":[3,8,9,10,12,13,14,15],"30":[1,4],"3000":[3,4,5,6,7,9,10,11,12,13,14,15],"31":5,"32":1,"3597696150205727":15,"36":1,"38596001132145313":8,"4":[4,6,7,8,9,10,13,14,15],"40587512":6,"4073":6,"42":[3,4,5,6,7,9,10,11,12,13,14],"42145064":6,"42186993":6,"4313385010057378":15,"4339572":6,"4463":10,"46":8,"4694":6,"4713":7,"47903505674073327":15,"4857":9,"4871":7,"49":4,"4973":9,"4997":9,"4f":[3,4,5,7,9,10,11,12,13,14],"4n_":11,"5":[3,4,5,6,7,8,9,10,11,12,13,14,15],"5000":12,"5093":9,"5120":3,"5157":9,"5216":4,"5276":4,"54":1,"57":[1,15],"5720":7,"5848":4,"5888":10,"6":[3,7,8,10,12,13,14],"6451":9,"6540":7,"6806":12,"6870083043946692":14,"6917":6,"7":[7,9,10,14],"724697":7,"735":1,"75":8,"754":1,"7618909465130066":14,"79":13,"8":[7,15],"80":1,"81":8,"8177":3,"8395":6,"8477":13,"8517":5,"8527":14,"88":10,"8833":4,"9":[3,4,5,6,7,9,10,11,12,13,14],"904882":7,"9078":12,"9080":14,"9143":6,"9183":10,"9248":13,"9417":13,"9428":13,"9431":13,"9464":13,"9505":13,"9512":8,"954272156665926":15,"9637":14,"9681":3,"98004566237139":13,"9940882825422431":15,"9955526198316073":13,"9983":5,"9986":10,"9995371694290871":15,"9997":10,"9999":10,"9999110978316078":15,"A":[2,4,8,11],"For":[1,4,12],"If":[2,8,9,10,13,14],"In":[4,14],"It":[10,12,15],"NO":15,"OF":15,"On":8,"One":[3,4,5,10,12,14],"The":[1,3,4,6,7,9,10,11,12,13,14,15],"To":15,"With":8,"_emb":1,"_i":14,"_log_n":4,"abcdefghijklmnopqrstuvwxyz":8,"absolut":9,"abstract":7,"accept":[3,12],"across":[1,10],"action":1,"activ":6,"ad":[1,8],"adapt":[3,4,15],"add":[1,2],"adequ":14,"advantag":12,"ae":3,"affin":4,"against":2,"al":[3,11,12,13],"alexandr":[3,5,7,12],"algorithm":[11,15],"all":[1,10,15],"allow":[1,4],"along":[6,7,9,11,13],"alpha":[1,4],"also":8,"although":8,"alwai":[1,15],"american":[3,12],"among":1,"amount":3,"an":[1,2,5,6,8,10,14,15],"analysi":[1,3,4,8,12,15],"ani":[0,7,15],"ant":[3,4,5,6,7,9,10,11,12,13,14,15],"antropi":[0,1,2,15],"app_entropi":15,"appear":10,"applic":8,"approach":5,"approxim":[1,3,12,15],"ar":[1,2,6,7,10,14,15],"arang":[3,4,5,6,7,9,10,11,12,13,14],"arithmet":1,"arrai":[1,3,4,5,6,7,8,9,10,11,12,13,14],"assess":12,"astral":1,"attain":10,"author":15,"avail":0,"averag":[1,7,10],"axi":[6,7,9,11,13],"b":[2,8],"badg":1,"bandt":10,"bandwidth":6,"baptist":[3,5,7,12],"base":11,"basi":5,"becom":7,"been":1,"begin":8,"behav":4,"behaviour":1,"behind":4,"bernd":10,"between":[7,9,10,13,14],"binari":[1,8],"bio":8,"biomark":11,"bit":[10,13,14],"black":1,"bo":6,"bodi":1,"bool":[8,9,10,13,14],"boolean":8,"bound":10,"branch":[1,2],"broken":1,"brownian":4,"bug":[1,15],"build":[1,15],"buldyrev":4,"bump":1,"c":[4,8,12,15],"calcul":[1,4,6,7,10,11,13],"call":4,"can":[1,2,6,15],"case":1,"cd":[2,15],"chang":[2,4,8,11],"changelog":1,"charact":8,"character":12,"chebyshev":[3,12],"check":[2,15],"checkout":2,"chemistri":8,"christoph":[4,10],"ci":1,"cimed2005":11,"cindi":11,"circulatori":[3,12],"clear":[2,10],"click":0,"clinic":13,"clone":[2,15],"code":[1,2,3,4,5,7,11,12,15],"codecov":1,"codecov_token":1,"coeffici":1,"colleagu":8,"com":[2,6,7,15],"combin":1,"combo":1,"compar":10,"comparison":11,"compil":1,"complet":10,"complex":[1,6,8,10,11,12,15],"compris":[10,14],"comput":[5,6,9,11,12,15],"conda":[1,15],"condit":1,"confer":11,"consecut":10,"constant":1,"contact":15,"contain":10,"contribut":[1,15],"converg":6,"core":1,"correl":1,"correspond":8,"count":8,"cover":1,"coverag":1,"creat":[2,10,14,15],"credit":15,"cross":[1,9,15],"cschoel":4,"current":[4,15],"custom":12,"d":[1,4,5,6,7,9,11,13],"dark":1,"data":[1,3,6,7,9,11,12,13,14],"ddn":7,"decomposit":[1,14,15],"decreas":10,"default":[3,4,6,7,9,10,11,12,13,14],"default_rng":[3,4,5,6,7,9,10,11,12,13,14],"defin":[6,8,10,11,12,13,14],"definit":4,"delai":[1,5,10,14],"delta":11,"dementia":11,"densiti":13,"dep":1,"depend":[1,2,4],"deriv":[6,11],"descript":2,"detail":[0,1,4],"detrend":[1,4,15],"detrended_fluctu":[1,15],"deviat":[3,4,6,12],"dfa":4,"differ":[8,11],"dimens":[1,3,5,7,11,12,14,15],"dimension":[3,4,5,10,12,14],"discret":[6,9,13],"discuss":2,"distanc":[3,7,12],"distancemetr":[3,12],"divid":[6,7,9,10,13,14],"dna":4,"doc":1,"docstr":1,"document":[0,1,4,7],"doe":4,"doi":[6,8],"domain":[1,6],"doubl":15,"download":1,"drop":1,"dur":[6,9,13],"e":[1,4,8,10],"each":13,"easili":[6,15],"edg":1,"edit":[2,15],"eeg":[11,13,15],"effici":15,"eigenvector":14,"eighth":11,"electroencephalographi":13,"embed":[3,10,12,14],"en":[6,8,13],"enabl":1,"encount":8,"end":8,"entri":1,"entropi":[1,3,4,6,10,12,13,14,15],"eol":1,"equat":4,"error":1,"estim":[4,6,13],"et":[3,11,12,13],"euclidean":[3,7,12],"evalu":1,"everyth":2,"exampl":[2,3,4,5,6,7,8,9,10,11,12,13,14,15],"excel":[4,15],"exercis":1,"exist":1,"explan":14,"explicit":1,"expon":4,"ext":1,"extend":1,"extract":15,"f":[3,4,5,6,7,9,10,11,12,13,14],"f_":13,"factor":4,"factori":[10,14],"fals":[8,9,10,13,14],"fast":12,"faster":[1,4],"fd":[1,7,11],"featur":[2,3,5,7,12,15],"feel":15,"fft":13,"find":[2,4],"finit":[8,11],"first":[6,7,10],"fix":1,"flake8":1,"float":[3,4,5,6,7,8,9,10,11,12,13,14],"fluctuat":[1,3,4,15],"follow":7,"forg":[1,15],"fork":2,"format":2,"fourier":13,"fox":1,"fr":7,"frac":[7,8,11,12],"fractal":[1,5,7,11,15],"fraction":[3,4,5,6,7,9,10,11,12,13,14],"fractionalgaussiannois":[3,4,5,6,7,9,10,11,12,13,14],"free":[4,12,15],"frequenc":[6,13],"from":[1,3,4,5,7,8,11,12,15],"frontier":4,"full":0,"func":1,"function":[0,1,3,4,5,8,12],"g":[1,4,8,10],"gaussian":[3,4,5,6,7,9,10,11,12,13,14],"geissmann":11,"gener":[1,3,12],"git":[2,15],"github":[1,2,4,15],"give":[1,6],"given":6,"goe":15,"goh":11,"goldberg":4,"gramfort":[3,5,7,12],"group":[1,2,8,15],"guard":1,"guid":1,"h":[3,4,5,6,7,9,10,11,12,13,14],"h2039":[3,12],"h2049":[3,12],"ha":[1,12],"hal":7,"handl":1,"hansen":4,"hao":8,"hardcod":1,"hardston":4,"have":[2,8,12],"havlin":4,"healthcar":11,"heart":[3,12],"heavili":8,"hello":[1,8],"help":2,"helper":1,"here":2,"hfd":5,"high":12,"higher":8,"higuchi":[1,5,15],"higuchi_fd":[1,15],"hindawi":7,"hjorth":[1,6,15],"hjorth_param":[1,15],"hjorth_paramet":6,"how":2,"html":[3,4,12],"http":[2,3,4,6,7,8,12,13,15],"hurst":[3,4,5,6,7,9,10,11,12,13,14],"hz":13,"i":[1,2,3,4,6,7,8,9,10,11,12,13,14,15],"icon":1,"idea":4,"ieee":[1,7,8,11],"ieeexplor":7,"implement":[1,4,12],"import":[3,4,5,6,7,8,9,10,11,12,13,14,15],"improv":1,"increas":[1,3,4,5,7,10,11,12,14],"inde":4,"independ":12,"index":1,"indic":[3,4,6,8,12,14],"inf":1,"inferior":12,"influenc":8,"inform":[8,10],"initi":1,"inouy":13,"input":1,"inria":7,"instal":[1,2],"instead":[1,8],"instruct":1,"instrument":1,"int":[3,5,6,7,8,9,10,11,12,13,14],"integ":[1,8],"intellig":11,"intern":11,"intersphinx":1,"introduc":[6,10],"invalid":1,"io":4,"irregular":[5,13],"issu":[1,2,15],"its":[0,8],"j":[3,8,12],"jansen":4,"jean":[3,5,7,12],"jit":1,"job":1,"journal":[3,7,8,12],"k":[4,8],"katz":[1,7,15],"katz_fd":[1,15],"kdtree":[1,3,12],"kernel":1,"kfd":7,"kind":15,"kmax":5,"kolmogorov":11,"l":[4,7],"lag":[10,14],"larg":12,"last":[6,7,9,11,13],"latest":1,"latex":1,"law":4,"layout":1,"learn":[1,3,12,15],"lempel":[1,8,15],"len":[4,12],"length":[1,4,8,11,12,13,14],"letter":10,"light":1,"limit":1,"linearli":[3,4,5,7,10,11,12,14],"link":1,"linkenka":4,"list":[0,1,3,4,5,6,7,8,9,10,11,12,13,14],"local":2,"log":[1,12],"log2":[1,10,13,14],"log_":[7,11],"log_2":[10,13,14],"log_b":8,"long":4,"longer":[8,12],"lower":10,"lz":8,"lziv_complex":[1,15],"lzn":8,"m":[1,4,12,14],"main":15,"maintain":15,"make":2,"mansveld":4,"manual":4,"map":1,"master":2,"match":1,"math":1,"mathemat":8,"mathjax":1,"matrix":[10,14],"maximum":[5,7],"me":15,"mean":[1,6],"measur":[10,14],"medic":11,"medicin":11,"method":[1,7,13,15],"metric":[3,12],"migrat":1,"minim":2,"minimum":1,"mne":[1,3,5,7,12,15],"mob":6,"mobil":[1,6,15],"mode":[2,15],"modern":1,"modif":12,"modul":[3,12],"more":[1,3,4,12,15],"mosaic":4,"motion":4,"multipl":10,"my":2,"n":[1,4,6,7,8,9,10,11,13,14],"n_":11,"n_time":[3,10,12,14],"naereen":8,"name":[0,3,12],"nan":1,"natur":10,"ndarrai":10,"need":14,"neighbor":[3,12],"neighbourhood":12,"neuron":4,"neurophysiologi":13,"nikulin":4,"nois":[3,4,5,6,7,9,10,11,12,13,14],"nold":[4,15],"non":[1,4],"none":[3,12,13],"nonlinear":5,"normal":[1,6,8,9,10,13,14,15],"normalis":13,"note":[3,4,5,6,7,8,10,11,12,13,14,15],"now":1,"np":[3,4,5,6,7,9,10,11,12,13,14,15],"nperseg":13,"npy":1,"nucleotid":4,"num_zerocross":[1,15],"numba":[1,4,5,12,15],"numba_disable_jit":1,"number":[1,5,6,8,9,11,12,13,14,15],"numpi":[1,3,4,5,6,7,9,10,11,12,13,14,15],"nzc":9,"offset":5,"onli":6,"open":[2,15],"option":1,"order":[3,10,12,14],"org":[3,6,7,8,12,13],"organ":4,"origin":[4,5,7,11],"oscil":4,"other":[1,7,12,14],"otherwis":[8,9,10,13,14],"output":[8,9],"over":[3,4,10,12],"overlap":4,"overlin":14,"own":1,"p":[1,10,11,13],"packag":[1,3,4,5,7,11,12,15],"paramet":[1,3,4,5,6,7,8,9,10,11,12,13,14],"pass":[2,10],"path":1,"pattern":11,"pe":10,"peng":4,"pep":1,"perform":[6,9],"periodogram":13,"perm_entropi":[1,15],"permut":[1,10,14,15],"petrosian":[1,11,15],"petrosian_fd":[1,15],"pfd":11,"phenomena":5,"physic":[4,10],"physica":5,"physiolog":[3,12],"physiologi":[3,4,12],"pi":[3,4,5,6,7,9,10,11,12,13,14],"pip":[1,2,15],"platform":1,"pleas":[1,2,4,15],"pluggi":1,"poil":4,"point":[7,12],"pomp":10,"possibl":10,"power":[4,6,13],"pp":11,"pr1":1,"pr21":1,"pr3":1,"predict":3,"preictal":11,"previous":1,"print":[3,4,5,6,7,9,10,11,12,13,14,15],"probabl":10,"problem":2,"proceed":11,"process":[3,4,5,6,7,9,10,11,12,13,14],"product":1,"profession":8,"program":15,"project":[1,2],"properti":6,"proport":6,"propos":8,"provid":[1,15],"psd":13,"pull":15,"pure":[3,4,5,6,7,9,10,11,12,13,14],"py":1,"pycodestyl":1,"pydata":1,"pyentropi":15,"pypi":1,"pyrem":[11,15],"pytest":[1,2,15],"python":[1,2,4,15],"quantif":13,"quantifi":3,"quentin":11,"r":[3,4,12],"radiu":12,"rais":1,"rand":13,"random":[3,4,5,6,7,9,10,11,12,13,14,15],"rang":[1,10],"raphael":15,"raphaelvallat":[1,15],"rather":2,"ratio":6,"raw":8,"readm":1,"readonli":1,"real":1,"recognit":11,"refer":[1,3,4,5,6,7,8,10,11,12,13],"regular":[3,12],"rel":12,"releas":1,"remov":1,"renam":1,"render":1,"report":15,"repositori":[2,15],"repres":6,"represent":1,"reproduc":2,"request":15,"requir":[1,12],"resolv":1,"resp":7,"result":[8,15],"return":[1,3,4,5,6,7,8,9,10,11,12,13,14],"review":[4,10],"richman":[3,12],"rng":[3,4,5,6,7,9,10,11,12,13,14],"root":[1,6],"round":[6,9,13],"rst":1,"ruff":[1,2],"rule":1,"run":10,"s10910":8,"said":4,"same":[3,9,10,12],"sampl":[1,3,4,5,6,7,9,10,11,12,13,14,15],"sample_entropi":[1,15],"scale":4,"schiavon":4,"schiratti":[3,5,7,12],"scholzel":4,"scikit":[1,3,12,15],"scipi":[1,13,15],"script":12,"se":[12,13],"secret":1,"see":[0,1,8,15],"seed":[3,4,5,6,7,9,10,11,12,13,14,15],"segment":13,"self":[4,12],"separ":1,"sequenc":[1,8,10,11],"seri":[1,3,4,5,7,10,11,12,14,15],"set":[1,3,4,14],"setup":1,"setuptool":1,"sever":15,"sf":[6,9,13,15],"sh":1,"shannon":13,"shape":[3,6,10,12,14],"should":[7,11],"sigma":14,"sigma_1":14,"sigma_2":14,"sigma_m":14,"sign":11,"signal":[1,6,10,11,12,13,14,15],"signatur":1,"similar":[4,6,12],"simon":4,"simpl":[1,9],"simpli":6,"simplifi":1,"sin":[3,4,5,6,7,9,10,11,12,13,14],"sinc":[1,6],"sine":[3,4,5,6,7,9,10,11,12,13,14],"singular":[1,14,15],"size":[4,6,9,13,15],"sklearn":[1,3,12],"smaller":[3,12],"sn":[3,4,5,6,7,9,10,11,12,13,14],"so":[1,15],"sourc":[2,3,4,5,6,7,8,9,10,11,12,13,14,15],"specifi":4,"spectral":[1,13,15],"spectral_dens":13,"spectral_entropi":[1,15],"spectrum":[6,13],"speed":5,"sphinx":1,"sphinx_bootstrap_them":1,"split":1,"squar":[1,6],"stabl":[3,12],"stale":1,"standard":[3,4,6,12],"stanlei":4,"stationari":4,"statist":[4,6],"std":[3,4,12],"still":1,"stochast":[1,3,4,5,6,7,9,10,11,12,13,14],"str":[3,8,12,13],"stream":8,"string":[1,8],"style":2,"submit":15,"subseri":4,"substr":8,"success":7,"sum":[7,10],"sum_":[13,14],"support":1,"svd":14,"svd_e":14,"svd_entropi":15,"switch":1,"symposium":11,"system":[10,11],"t":[6,9,10,13,14],"taken":4,"technic":8,"techniqu":3,"templat":[3,12],"term":4,"test":[1,2,15],"test_util":1,"text":[3,4,8,10,12,14],"than":[2,15],"theme":1,"theori":[5,8],"therefor":8,"thi":[1,4,5,6,8,10,15],"three":1,"time":[1,3,4,5,6,7,9,10,11,12,13,14,15],"tit":8,"toggl":1,"token":1,"toler":[1,3,12],"tomoyuki":5,"total":[6,9,13],"transact":8,"transform":13,"troubl":12,"true":[8,9,10,13,14,15],"two":12,"type":1,"typo":1,"uniqu":8,"unpredict":3,"up":5,"updat":1,"upload":1,"upper":10,"url":1,"us":[1,2,3,4,5,6,8,12,13,15],"usernam":2,"utf":1,"util":4,"uv":[1,2,15],"uvx":[1,2],"v":4,"v1":1,"v7":1,"valid_metr":1,"vallat":15,"valu":[1,3,4,6,10,12,14,15],"valueerror":1,"var":6,"varianc":6,"vector":[3,6,9,12,13],"verbos":[2,15],"veri":4,"verifi":2,"version":[1,2,8],"via":1,"view":[4,8],"visit":15,"vol":4,"w":1,"wa":15,"warn":1,"warranti":15,"wave":[3,4,5,6,7,10,11,12,14],"welch":[13,15],"welcom":[2,15],"well":7,"were":15,"when":1,"where":[4,6,7,8,10,11,12,13,14],"wherea":12,"which":[1,4,6,7,8,9,11,13],"wiki":[6,8,13],"wikipedia":[6,8,13],"window":4,"within":4,"word":[8,14],"work":[1,8],"workflow":1,"world":[1,8],"www":7,"x":[1,3,4,5,6,7,9,10,11,12,13,14,15],"x_":[10,14],"x_i":[10,14],"xxx":1,"y":[8,10,14],"you":2,"your":2,"zero":[1,9,15],"zhang":8,"zhou":8,"ziv":[1,8,15],"ziv_complex":8},"titles":["API reference","What\u2019s new","Contributing","antropy.app_entropy","antropy.detrended_fluctuation","antropy.higuchi_fd","antropy.hjorth_params","antropy.katz_fd","antropy.lziv_complexity","antropy.num_zerocross","antropy.perm_entropy","antropy.petrosian_fd","antropy.sample_entropy","antropy.spectral_entropy","antropy.svd_entropy","Installation"],"titleterms":{"":1,"0":1,"1":1,"2":1,"2018":1,"2019":1,"2020":1,"2021":1,"2022":1,"2023":1,"2024":1,"2025":1,"2026":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"acknowledg":15,"antropi":[3,4,5,6,7,8,9,10,11,12,13,14],"api":0,"app_entropi":3,"april":1,"bug":2,"contribut":2,"decemb":1,"depend":15,"detrended_fluctu":4,"develop":15,"dimens":0,"entropi":0,"februari":1,"fractal":0,"function":15,"higuchi_fd":5,"hjorth_param":6,"instal":15,"juli":1,"katz_fd":7,"lziv_complex":8,"mai":1,"march":1,"new":1,"novemb":1,"num_zerocross":9,"octob":1,"perm_entropi":10,"petrosian_fd":11,"pull":2,"question":2,"refer":0,"report":2,"request":2,"sample_entropi":12,"spectral_entropi":13,"submit":2,"svd_entropi":14,"user":15,"v0":1,"what":1}}) \ No newline at end of file +Search.setIndex({"alltitles":{"API reference":[[0,null]],"Acknowledgement":[[15,"acknowledgement"]],"Contributing":[[2,null]],"Dependencies":[[15,"dependencies"]],"Development":[[15,"development"],[15,"id2"]],"Entropy":[[0,"entropy"]],"Fractal dimension":[[0,"fractal-dimension"]],"Functions":[[15,"functions"]],"Installation":[[15,null]],"Questions":[[2,"questions"]],"Reporting bugs":[[2,"reporting-bugs"]],"Submitting a pull request":[[2,"submitting-a-pull-request"]],"User installation":[[15,"user-installation"]],"What\u2019s new":[[1,null]],"antropy.app_entropy":[[3,null]],"antropy.detrended_fluctuation":[[4,null]],"antropy.higuchi_fd":[[5,null]],"antropy.hjorth_params":[[6,null]],"antropy.katz_fd":[[7,null]],"antropy.lziv_complexity":[[8,null]],"antropy.num_zerocross":[[9,null]],"antropy.perm_entropy":[[10,null]],"antropy.petrosian_fd":[[11,null]],"antropy.sample_entropy":[[12,null]],"antropy.spectral_entropy":[[13,null]],"antropy.svd_entropy":[[14,null]],"v0.1.0 (October 2018)":[[1,"v0-1-0-october-2018"]],"v0.1.1 (November 2019)":[[1,"v0-1-1-november-2019"]],"v0.1.2 (May 2020)":[[1,"v0-1-2-may-2020"]],"v0.1.3 (March 2021)":[[1,"v0-1-3-march-2021"]],"v0.1.4 (April 2021)":[[1,"v0-1-4-april-2021"]],"v0.1.5 (December 2022)":[[1,"v0-1-5-december-2022"]],"v0.1.6 (July 2023)":[[1,"v0-1-6-july-2023"]],"v0.1.7 (December 2024)":[[1,"v0-1-7-december-2024"]],"v0.1.8 (December 2024)":[[1,"v0-1-8-december-2024"]],"v0.1.9 (February 2025)":[[1,"v0-1-9-february-2025"]],"v0.2.0 (March 2026)":[[1,"v0-2-0-march-2026"]]},"docnames":["api","changelog","contributing","generated/antropy.app_entropy","generated/antropy.detrended_fluctuation","generated/antropy.higuchi_fd","generated/antropy.hjorth_params","generated/antropy.katz_fd","generated/antropy.lziv_complexity","generated/antropy.num_zerocross","generated/antropy.perm_entropy","generated/antropy.petrosian_fd","generated/antropy.sample_entropy","generated/antropy.spectral_entropy","generated/antropy.svd_entropy","index"],"envversion":{"sphinx":65,"sphinx.domains.c":3,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":9,"sphinx.domains.index":1,"sphinx.domains.javascript":3,"sphinx.domains.math":2,"sphinx.domains.python":4,"sphinx.domains.rst":2,"sphinx.domains.std":2,"sphinx.ext.intersphinx":1,"sphinx.ext.viewcode":1},"filenames":["api.rst","changelog.rst","contributing.rst","generated/antropy.app_entropy.rst","generated/antropy.detrended_fluctuation.rst","generated/antropy.higuchi_fd.rst","generated/antropy.hjorth_params.rst","generated/antropy.katz_fd.rst","generated/antropy.lziv_complexity.rst","generated/antropy.num_zerocross.rst","generated/antropy.perm_entropy.rst","generated/antropy.petrosian_fd.rst","generated/antropy.sample_entropy.rst","generated/antropy.spectral_entropy.rst","generated/antropy.svd_entropy.rst","index.rst"],"indexentries":{"detrended_fluctuation() (in module antropy)":[[4,"antropy.detrended_fluctuation",false]],"higuchi_fd() (in module antropy)":[[5,"antropy.higuchi_fd",false]],"katz_fd() (in module antropy)":[[7,"antropy.katz_fd",false]],"petrosian_fd() (in module antropy)":[[11,"antropy.petrosian_fd",false]]},"objects":{"antropy":[[3,0,1,"","app_entropy"],[4,0,1,"","detrended_fluctuation"],[5,0,1,"","higuchi_fd"],[6,0,1,"","hjorth_params"],[7,0,1,"","katz_fd"],[8,0,1,"","lziv_complexity"],[9,0,1,"","num_zerocross"],[10,0,1,"","perm_entropy"],[11,0,1,"","petrosian_fd"],[12,0,1,"","sample_entropy"],[13,0,1,"","spectral_entropy"],[14,0,1,"","svd_entropy"]]},"objnames":{"0":["py","function","Python function"]},"objtypes":{"0":"py:function"},"terms":{"":[2,3,4,7,8,12,13],"0":[3,4,5,6,7,8,9,10,11,12,13,14,15],"0000":[7,10,11,12,14],"0010":[3,8,11],"0013":5,"0040":5,"00442374":7,"005":6,"005040632258251":15,"0053":14,"008":8,"0091":5,"01":8,"01111000011001":15,"015221318528564":15,"0235":11,"0264":11,"0283":11,"0310643385753608":15,"0350":11,"0390":4,"0555":12,"0581":5,"0627":6,"0717":6,"0906":3,"1":[3,4,5,6,7,8,9,10,11,12,13,14,15],"10":[1,4,5,6,7,8,10,11,14,15],"100":[1,3,4,5,6,7,9,10,11,12,13,14,15],"1000":[3,4,5,7,10,11,12,14],"10000":[3,4,5,6,7,9,10,11,12,13,14],"1001111011000010":8,"1007":8,"1016":6,"1055501":8,"11":[8,10,14],"1100":8,"1109":8,"1110":8,"1203":8,"1212":8,"12345":1,"1234567":15,"1262":4,"13":1,"1457":9,"1499":9,"151":5,"1528":9,"1531":[7,15],"1547":9,"159":5,"1633":12,"17":10,"174102":10,"177":5,"1775":14,"1819":12,"183":5,"1958":3,"1970":6,"1976":8,"198595813245399":15,"1988":5,"1991":13,"1994":4,"1995":11,"1d":[6,7,9,11,13],"2":[3,4,5,6,7,8,9,10,11,12,13,14,15],"2000":[3,12],"2001":5,"2002":10,"2005":[5,11],"2009":[3,8],"2011":7,"2012":4,"2017":12,"204":13,"210":13,"21092261":6,"212":11,"215335712274099":15,"217":11,"217278":6,"21877527":6,"22":[1,8,15],"22623163":6,"2283":6,"23":1,"25":1,"256":13,"26":8,"2615":9,"277":5,"278":[3,12],"27s_method":13,"283":5,"2870":6,"2990143":6,"2d":[6,9,13],"2f0013":6,"2nd":11,"3":[3,6,8,9,10,12,13,14,15],"30":[1,4],"3000":[3,4,5,6,7,9,10,11,12,13,14,15],"31":5,"32":1,"3597696150205727":15,"36":1,"38596001132145313":8,"4":[4,6,7,8,9,10,13,14,15],"40587512":6,"4073":6,"42":[3,4,5,6,7,9,10,11,12,13,14],"42145064":6,"42186993":6,"4313385010057378":15,"4339572":6,"4463":10,"46":8,"4694":6,"4713":7,"47903505674073327":15,"48":5,"4857":9,"4871":7,"49":4,"4973":9,"4997":9,"4f":[3,4,5,7,9,10,11,12,13,14],"4n_":11,"5":[3,4,5,6,7,8,9,10,11,12,13,14,15],"5000":12,"5093":9,"5120":3,"5157":9,"5216":4,"5276":4,"54":1,"57":[1,15],"5720":7,"5848":4,"5888":10,"6":[3,7,8,10,12,13,14],"6451":9,"6540":7,"6806":12,"6870083043946692":14,"6917":6,"7":[7,9,10,14],"724697":7,"735":1,"75":8,"754":1,"7618909465130066":14,"79":[5,13],"8":[7,15],"80":1,"81":8,"8177":3,"8395":6,"8477":13,"8517":5,"8527":14,"88":10,"8833":4,"9":[3,4,5,6,7,9,10,11,12,13,14],"904882":7,"9078":12,"9080":14,"9143":6,"9183":10,"9248":13,"9417":13,"9428":13,"9431":13,"9464":13,"9505":13,"9512":8,"954272156665926":15,"9637":14,"9681":3,"98004566237139":13,"9940882825422431":15,"9955526198316073":13,"9983":5,"9986":10,"9995371694290871":15,"9997":10,"9999":10,"9999110978316078":15,"A":[2,4,5,8,11],"For":[1,4,5,12],"If":[2,8,9,10,13,14],"In":[4,14],"It":[10,12,15],"NO":15,"OF":15,"On":8,"One":[3,4,5,10,12,14],"The":[1,3,4,5,6,7,9,10,11,12,13,14,15],"To":15,"With":8,"_emb":1,"_i":14,"_log_n":[],"abcdefghijklmnopqrstuvwxyz":8,"absolut":9,"abstract":7,"accept":[3,12],"across":[1,5,10],"action":1,"activ":6,"ad":[1,6,8,9],"adapt":[3,4,15],"add":[1,2],"adequ":14,"advantag":12,"ae":3,"affin":4,"against":[2,5],"al":[3,5,11,12,13],"alexandr":[3,5,7,12],"algorithm":[5,11,15],"all":[1,5,10,15],"allow":[1,4],"along":[6,7,9,11,13],"alpha":[1,4],"also":8,"although":8,"alwai":[1,15],"american":[3,12],"among":1,"amount":3,"an":[1,2,5,6,8,10,14,15],"analysi":[1,3,4,8,12,15],"ani":[0,7,15],"ant":[3,4,5,6,7,9,10,11,12,13,14,15],"antropi":[0,1,2,15],"app_entropi":15,"appear":10,"applic":[5,8],"approach":5,"approxim":[1,3,12,15],"ar":[1,2,5,6,7,10,14,15],"arang":[3,4,5,6,7,9,10,11,12,13,14],"arithmet":1,"arrai":[1,3,4,5,6,7,8,9,10,11,12,13,14],"assess":12,"astral":1,"attain":10,"author":15,"avail":0,"averag":[1,5,7,10],"axi":[6,7,9,11,13],"b":[2,8],"badg":1,"bandt":10,"bandwidth":6,"baptist":[3,5,7,12],"base":11,"basi":5,"becom":7,"been":1,"begin":8,"behav":4,"behaviour":1,"behind":4,"bernd":10,"between":[7,9,10,13,14],"bin":13,"binari":1,"bio":8,"biomark":11,"biomedicin":5,"bit":[10,13,14],"black":1,"bo":6,"bodi":1,"bool":[8,9,10,13,14],"boolean":8,"bound":10,"branch":[1,2],"broken":1,"brownian":4,"bug":[1,15],"build":[1,15],"buldyrev":4,"bump":1,"c":[4,8,12,15],"calcul":[1,4,6,7,10,11,13],"call":4,"can":[1,2,6,15],"case":1,"cd":[2,15],"cdot":5,"chang":[2,4,8,11],"changelog":1,"charact":8,"character":12,"chebyshev":[3,12],"check":[2,15],"checkout":2,"chemistri":8,"christoph":[4,10],"ci":1,"cimed2005":11,"cindi":11,"circuit":5,"circulatori":[3,12],"clear":[2,10],"click":0,"clinic":13,"clone":[2,15],"code":[1,2,3,4,5,7,11,12,15],"codecov":1,"codecov_token":1,"coeffici":1,"colleagu":8,"com":[2,6,7,15],"combin":1,"combo":1,"compar":10,"comparison":[5,11],"compil":1,"complet":10,"complex":[1,6,8,10,11,12,15],"compris":[10,14],"comput":[5,6,9,11,12,15],"conda":[1,15],"condit":1,"confer":11,"consecut":10,"constant":1,"construct":5,"contact":15,"contain":10,"contribut":[1,15],"converg":6,"core":1,"correl":1,"correspond":8,"count":8,"cover":1,"coverag":1,"creat":[2,10,14,15],"credit":15,"cross":[1,9,15],"cschoel":4,"current":[4,15],"custom":12,"d":[1,4,5,6,7,9,11,13],"dark":1,"data":[1,3,6,7,9,11,12,13,14],"ddn":7,"decomposit":[1,14,15],"decreas":10,"default":[3,6,7,9,10,11,12,13,14],"default_rng":[3,4,5,6,7,9,10,11,12,13,14],"defin":[6,8,10,11,12,13,14],"definit":4,"delai":[1,5,10,14],"delta":11,"dementia":11,"densiti":13,"dep":1,"depend":[1,2,4],"deriv":[6,11],"descript":2,"detail":[0,1,4],"detect":5,"detrend":[1,4,15],"detrended_fluctu":[1,15],"deviat":[3,4,6,12],"dfa":4,"differ":[8,11],"dimens":[1,3,5,7,11,12,14,15],"dimension":[3,4,5,10,12,14],"discret":[6,9,13],"discuss":2,"distanc":[3,7,12],"distancemetr":[3,12],"divid":[6,7,9,10,13,14],"dna":4,"doc":1,"docstr":1,"document":[0,1,4,7],"doe":4,"doi":[6,8],"domain":[1,6],"doubl":15,"download":1,"drop":1,"dur":[6,9,13],"e":[1,4,8,10],"each":[5,13],"easili":[6,15],"edg":1,"edit":[2,15],"eeg":[11,13,15],"effici":15,"eigenvector":14,"eighth":11,"electroencephalographi":13,"embed":[3,10,12,14],"en":[6,8,13],"enabl":1,"encount":8,"end":8,"entri":1,"entropi":[1,3,10,12,13,14,15],"eol":1,"epilept":5,"equat":4,"error":1,"estel":5,"estim":[4,5,6,13],"et":[3,5,11,12,13],"euclidean":[3,7,12],"evalu":1,"everyth":2,"exampl":[2,3,4,5,6,7,8,9,10,11,12,13,14,15],"excel":[4,15],"exercis":1,"exist":1,"explan":14,"explicit":1,"expon":4,"ext":1,"extend":1,"extract":15,"f":[3,4,5,6,7,9,10,11,12,13,14],"f_":13,"factor":4,"factori":[10,14],"fals":[8,9,10,13,14],"fast":12,"faster":[1,4],"fd":[1,5,7,11],"featur":[2,3,5,7,12,15],"feel":15,"fft":13,"find":[2,4],"finit":[8,11],"first":[6,7,10],"fix":1,"flake8":1,"float":[3,4,5,6,7,8,9,10,11,12,13,14],"fluctuat":[1,3,4,15],"follow":7,"forg":[1,15],"fork":2,"format":2,"fourier":13,"fox":1,"fr":7,"frac":[5,7,8,11,12],"fractal":[1,5,7,11,15],"fraction":[3,4,5,6,7,9,10,11,12,13,14],"fractionalgaussiannois":[3,4,5,6,7,9,10,11,12,13,14],"free":[4,12,15],"frequenc":[6,13],"from":[1,3,4,5,7,8,11,12,15],"frontier":4,"full":0,"func":1,"function":[0,1,3,4,5,8,12],"fundament":5,"g":[1,4,8,10],"gaussian":[3,4,5,6,7,9,10,11,12,13,14],"geissmann":11,"gener":[1,3,12],"geometr":4,"git":[2,15],"github":[1,2,4,15],"give":[1,6],"given":6,"goe":15,"goh":11,"goldberg":4,"gramfort":[3,5,7,12],"group":[1,2,8,15],"guard":1,"guid":1,"h":[3,4,5,6,7,9,10,11,12,13,14],"h2039":[3,12],"h2049":[3,12],"ha":[1,12],"hal":7,"handl":1,"hansen":4,"hao":8,"hardcod":1,"hardston":4,"have":[2,8,12],"havlin":4,"healthcar":11,"heart":[3,12],"heavili":8,"hello":[1,8],"help":2,"helper":1,"here":2,"hfd":5,"high":12,"higher":8,"higuchi":[1,5,15],"higuchi_fd":[1,15],"hindawi":7,"hjorth":[1,6,15],"hjorth_param":[1,15],"hjorth_paramet":6,"how":2,"html":[3,4,12],"http":[2,3,4,6,7,8,12,13,15],"hurst":[3,4,5,6,7,9,10,11,12,13,14],"hz":13,"i":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],"icon":1,"idea":4,"ieee":[1,5,7,8,11],"ieeexplor":7,"implement":[1,4,12],"import":[3,4,5,6,7,8,9,10,11,12,13,14,15],"improv":1,"increas":[1,3,4,5,7,10,11,12,14],"inde":4,"independ":12,"index":1,"indic":[3,4,6,8,12,14],"inf":1,"inferior":[],"influenc":8,"inform":[8,10],"initi":1,"inouy":13,"input":1,"inria":7,"instal":[1,2],"instead":[1,8],"instruct":1,"instrument":1,"int":[3,5,6,7,8,9,10,11,12,13,14],"integ":[1,8],"intellig":11,"intern":11,"intersphinx":1,"interv":5,"introduc":[6,10],"invalid":1,"io":4,"irregular":[5,13],"issu":[1,2,15],"its":[0,8],"j":[3,5,8,12],"jansen":4,"jean":[3,5,7,12],"jit":1,"jk":5,"job":1,"journal":[3,7,8,12],"k":[4,5,8],"katz":[1,7,15],"katz_fd":[1,15],"kdtree":[1,3,12],"kernel":1,"kfd":7,"kind":15,"kmax":5,"kolmogorov":11,"l":[4,5,7],"l_m":5,"lag":[10,14],"larg":12,"last":[6,7,9,11,13],"latest":1,"latex":1,"law":4,"layout":1,"learn":[1,3,12,15],"left":[],"lempel":[1,8,15],"len":12,"length":[1,4,5,8,11,12,13,14],"less":12,"let":5,"letter":10,"lfloor":5,"light":1,"limit":1,"linear":5,"linearli":[3,4,5,7,10,11,12,14],"link":1,"linkenka":4,"list":[0,1,3,4,5,6,7,8,9,10,11,12,13,14],"local":2,"log":[1,5,12],"log2":[1,10,13,14],"log_":[7,11],"log_2":[10,13,14],"log_b":8,"long":4,"longer":[8,12],"lower":10,"lz":8,"lziv_complex":[1,15],"lzn":8,"m":[1,4,5,12,14],"main":15,"maintain":15,"make":2,"mansveld":4,"manual":4,"map":1,"master":2,"match":1,"math":1,"mathemat":8,"mathjax":1,"matrix":[10,14],"maximum":[5,7],"me":15,"mean":[1,6],"measur":[10,14],"medic":11,"medicin":11,"method":[1,5,7,13,15],"metric":[3,12],"migrat":1,"minim":2,"minimum":1,"mne":[1,3,5,7,12,15],"mob":6,"mobil":[1,6,15],"mode":[2,15],"modern":1,"modif":12,"modul":[3,12],"more":[1,3,4,12,15],"mosaic":4,"motion":4,"multipl":10,"my":2,"n":[1,4,5,6,7,8,9,10,11,13,14],"n_":11,"n_m":5,"n_time":[3,10,12,14],"naereen":8,"name":[0,3,12],"nan":1,"natur":10,"ndarrai":10,"need":14,"neighbor":[3,12],"neighbourhood":12,"neuron":4,"neurophysiologi":13,"nikulin":4,"nois":[3,4,5,6,7,9,10,11,12,13,14],"nold":[4,15],"non":[1,4],"none":[3,12,13],"nonlinear":5,"normal":[1,6,8,9,10,13,14,15],"normalis":[5,13],"note":[3,4,5,6,7,8,10,11,12,13,14,15],"now":1,"np":[3,4,5,6,7,9,10,11,12,13,14,15],"nperseg":13,"npy":1,"nucleotid":4,"num_zerocross":[1,15],"numba":[1,4,5,12,15],"numba_disable_jit":1,"number":[1,5,6,8,9,11,12,13,14,15],"numpi":[1,3,4,5,6,7,9,10,11,12,13,14,15],"nzc":9,"offset":5,"onli":6,"open":[2,15],"option":1,"order":[3,10,12,14],"org":[3,6,7,8,12,13],"organ":4,"origin":[4,5,7,11],"oscil":4,"other":[1,7,12,14],"otherwis":[8,9,10,13,14],"output":[8,9],"over":[3,4,10,12],"overlap":4,"overlin":14,"own":1,"p":[1,10,11,13],"packag":[1,3,4,5,7,11,12,15],"paivinen":5,"paramet":[1,3,4,5,6,7,8,9,10,11,12,13,14],"pass":[2,10],"path":1,"pattern":11,"pe":10,"peng":4,"pep":1,"perform":[6,9],"periodogram":13,"perm_entropi":[1,15],"permut":[1,10,15],"petrosian":[1,11,15],"petrosian_fd":[1,15],"pfd":11,"phenomena":5,"physic":[4,10],"physica":5,"physiolog":[3,12],"physiologi":[3,4,12],"pi":[3,4,5,6,7,9,10,11,12,13,14],"pip":[1,2,15],"platform":1,"pleas":[1,2,4,15],"pluggi":1,"poil":4,"point":[7,12],"pomp":10,"possibl":10,"power":[4,6,13],"pp":11,"pr1":1,"pr21":1,"pr3":1,"predict":3,"preictal":11,"previous":1,"print":[3,4,5,6,7,9,10,11,12,13,14,15],"probabl":10,"problem":2,"proceed":11,"process":[3,4,5,6,7,9,10,11,12,13,14],"product":1,"profession":8,"program":[5,15],"project":[1,2],"properti":6,"proport":6,"propos":8,"provid":[1,15],"psd":13,"pull":15,"pure":[3,4,5,6,7,9,10,11,12,13,14],"py":1,"pycodestyl":1,"pydata":1,"pyentropi":15,"pypi":1,"pyrem":[11,15],"pytest":[1,2,15],"python":[1,2,4,15],"quantif":13,"quantifi":3,"quentin":11,"r":[3,4,5,12],"radiu":12,"rais":1,"rand":13,"random":[3,4,5,6,7,9,10,11,12,13,14,15],"rang":[1,4,10],"raphael":15,"raphaelvallat":[1,15],"rather":2,"ratio":6,"raw":8,"readm":1,"readonli":1,"real":1,"recognit":11,"refer":[1,3,4,5,6,7,8,10,11,12,13],"regress":5,"regular":[3,12],"rel":12,"relat":4,"releas":1,"remov":1,"renam":1,"render":1,"report":15,"repositori":[2,15],"repres":6,"represent":1,"reproduc":2,"request":15,"requir":[1,12],"resolv":1,"resp":7,"result":[8,15],"return":[1,3,4,5,6,7,8,9,10,11,12,13,14],"review":[4,10],"rfloor":5,"richman":[3,12],"right":[],"rng":[3,4,5,6,7,9,10,11,12,13,14],"root":[1,6],"round":[6,9,13],"rst":1,"ruff":[1,2],"rule":1,"run":10,"s10910":8,"said":4,"same":[3,9,10,12],"sampl":[1,3,4,5,6,7,9,10,11,12,13,14,15],"sample_entropi":[1,15],"scale":4,"schiavon":4,"schiratti":[3,5,7,12],"scholzel":4,"scikit":[1,3,12,15],"scipi":[1,13,15],"script":12,"se":[12,13],"secret":1,"see":[0,1,8,15],"seed":[3,4,5,6,7,9,10,11,12,13,14,15],"segment":13,"seizur":5,"self":[4,12],"separ":1,"sequenc":[1,8,10,11],"seri":[1,3,4,5,7,10,11,12,14,15],"set":[1,3,14],"setup":1,"setuptool":1,"sever":15,"sf":[6,9,13,15],"sh":1,"shannon":13,"shape":[3,6,10,12,14],"shorter":13,"should":[7,11],"sigma":14,"sigma_1":14,"sigma_2":14,"sigma_m":14,"sign":11,"signal":[1,4,5,6,10,11,12,13,14,15],"signatur":1,"similar":[4,6,12],"simon":4,"simpl":[1,9],"simpli":6,"simplifi":1,"sin":[3,4,5,6,7,9,10,11,12,13,14],"sinc":[1,6],"sine":[3,4,5,6,7,9,10,11,12,13,14],"singular":[1,14,15],"size":[4,6,9,13,15],"sklearn":[1,3,12],"slope":5,"smaller":[3,12],"sn":[3,4,5,6,7,9,10,11,12,13,14],"so":[1,15],"sourc":[2,3,4,5,6,7,8,9,10,11,12,13,14,15],"space":4,"specifi":4,"spectral":[1,13,15],"spectral_dens":13,"spectral_entropi":[1,15],"spectrum":[6,13],"speed":5,"sphinx":1,"sphinx_bootstrap_them":1,"split":1,"squar":[1,6],"stabl":[3,12],"stale":1,"standard":[3,4,6,12],"stanlei":4,"start":5,"stationari":4,"statist":[4,6],"std":[3,4,12],"still":1,"stochast":[1,3,4,5,6,7,9,10,11,12,13,14],"str":[3,8,12,13],"stream":8,"string":[1,8],"style":2,"sub":5,"submit":15,"subseri":4,"substr":8,"success":7,"sum":[7,10],"sum_":[5,13,14],"support":1,"svd":14,"svd_e":14,"svd_entropi":15,"switch":1,"symposium":11,"system":[5,10,11],"t":[6,9,10,13,14],"taken":4,"technic":8,"techniqu":3,"templat":[3,12],"term":4,"test":[1,2,15],"test_util":1,"text":[3,4,5,8,10,12,14],"than":[2,12,15],"theme":1,"theori":[5,8],"therefor":8,"thi":[1,4,5,6,8,10,15],"three":1,"time":[1,3,4,5,6,7,9,10,11,12,13,14,15],"tit":8,"toggl":1,"token":1,"toler":[1,3,12],"tomoyuki":5,"total":[6,9,13],"transact":[5,8],"transform":13,"troubl":12,"true":[8,9,10,13,14,15],"two":12,"type":1,"typo":1,"uniqu":8,"unpredict":3,"up":5,"updat":1,"upload":1,"upper":10,"url":1,"us":[1,2,3,4,5,6,8,12,13,15],"usernam":2,"utf":1,"util":[],"uv":[1,2,15],"uvx":[1,2],"v":4,"v1":1,"v7":1,"valid_metr":1,"vallat":15,"valu":[1,3,4,6,10,12,14,15],"valueerror":1,"var":6,"varianc":6,"vector":[3,6,9,12,13],"verbos":[2,15],"veri":4,"verifi":2,"version":[1,2,6,8,9],"via":1,"view":[4,8],"viewpoint":5,"visit":15,"vol":4,"w":1,"wa":15,"warn":1,"warranti":15,"wave":[3,4,5,6,7,10,11,12,14],"waveform":5,"welch":[13,15],"welcom":[2,15],"well":7,"were":15,"when":1,"where":[4,6,7,8,10,11,12,13,14],"wherea":12,"which":[1,4,6,7,8,9,11,13],"wiki":[6,8,13],"wikipedia":[6,8,13],"window":4,"within":4,"word":[8,14],"work":[1,8],"workflow":1,"world":[1,8],"www":7,"x":[1,3,4,5,6,7,9,10,11,12,13,14,15],"x_":[5,10,14],"x_i":[10,14],"xxx":1,"y":[8,10,14],"you":2,"your":2,"zero":[1,9,15],"zhang":8,"zhou":8,"ziv":[1,8,15],"ziv_complex":8},"titles":["API reference","What\u2019s new","Contributing","antropy.app_entropy","antropy.detrended_fluctuation","antropy.higuchi_fd","antropy.hjorth_params","antropy.katz_fd","antropy.lziv_complexity","antropy.num_zerocross","antropy.perm_entropy","antropy.petrosian_fd","antropy.sample_entropy","antropy.spectral_entropy","antropy.svd_entropy","Installation"],"titleterms":{"":1,"0":1,"1":1,"2":1,"2018":1,"2019":1,"2020":1,"2021":1,"2022":1,"2023":1,"2024":1,"2025":1,"2026":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"acknowledg":15,"antropi":[3,4,5,6,7,8,9,10,11,12,13,14],"api":0,"app_entropi":3,"april":1,"bug":2,"contribut":2,"decemb":1,"depend":15,"detrended_fluctu":4,"develop":15,"dimens":0,"entropi":0,"februari":1,"fractal":0,"function":15,"higuchi_fd":5,"hjorth_param":6,"instal":15,"juli":1,"katz_fd":7,"lziv_complex":8,"mai":1,"march":1,"new":1,"novemb":1,"num_zerocross":9,"octob":1,"perm_entropi":10,"petrosian_fd":11,"pull":2,"question":2,"refer":0,"report":2,"request":2,"sample_entropi":12,"spectral_entropi":13,"submit":2,"svd_entropi":14,"user":15,"v0":1,"what":1}}) \ No newline at end of file diff --git a/src/antropy/entropy.py b/src/antropy/entropy.py index 4b49d4c..8674a06 100644 --- a/src/antropy/entropy.py +++ b/src/antropy/entropy.py @@ -50,7 +50,7 @@ def perm_entropy(x, order=3, delay=1, normalize=False): The permutation entropy of a signal :math:`x` is defined as: - .. math:: H = -\\sum p(\\pi)\\log_2(\\pi) + .. math:: H = -\\sum p(\\pi)\\log_2 p(\\pi) where the sum runs over all :math:`n!` permutations :math:`\\pi` of order :math:`n`. This is the information contained in comparing :math:`n` @@ -160,10 +160,12 @@ def spectral_entropy(x, sf, method="fft", nperseg=None, normalize=False, axis=-1 * ``'welch'`` : Welch periodogram (:py:func:`scipy.signal.welch`) nperseg : int or None Length of each FFT segment for Welch method. - If None (default), uses scipy default of 256 samples. + If None (default), uses scipy's default (256 samples, or the length + of the signal if shorter). normalize : bool - If True, divide by log2(psd.size) to normalize the spectral entropy - between 0 and 1. Otherwise, return the spectral entropy in bit. + If True, divide by log2(number of frequency bins) to normalize the + spectral entropy between 0 and 1. Otherwise, return the spectral + entropy in bit. axis : int The axis along which the entropy is calculated. Default is -1 (last). @@ -272,8 +274,8 @@ def svd_entropy(x, order=3, delay=1, normalize=False): delay : int Time delay (lag). Default is 1. normalize : bool - If True, divide by log2(order!) to normalize the entropy between 0 - and 1. Otherwise, return the permutation entropy in bit. + If True, divide by log2(order) to normalize the entropy between 0 + and 1. Otherwise, return the SVD entropy in bit. Returns ------- @@ -476,6 +478,7 @@ def app_entropy(x, order=2, tolerance=None, metric="chebyshev"): :py:class:`sklearn.neighbors.KDTree`. Default is to use the `Chebyshev `_ distance. + Returns ------- ae : float @@ -599,8 +602,8 @@ def sample_entropy(x, order=2, tolerance=None, metric="chebyshev"): :math:`C(m + 1, r)` is the number of embedded vectors of length :math:`m + 1` having a `Chebyshev distance `_ - inferior to :math:`r` and :math:`C(m, r)` is the number of embedded - vectors of length :math:`m` having a Chebyshev distance inferior to + less than :math:`r` and :math:`C(m, r)` is the number of embedded + vectors of length :math:`m` having a Chebyshev distance less than :math:`r`. Note that if ``metric == 'chebyshev'`` and ``len(x) < 5000`` points, @@ -730,14 +733,14 @@ def _lz_complexity(binary_string): def lziv_complexity(sequence, normalize=False): """ - Lempel-Ziv (LZ) complexity of (binary) sequence. + Lempel-Ziv (LZ) complexity of a sequence. .. versionadded:: 0.1.1 Parameters ---------- sequence : str or array - A sequence of character, e.g. ``'1001111011000010'``, + A sequence of characters, e.g. ``'1001111011000010'``, ``[0, 1, 0, 1, 1]``, or ``'Hello World!'``. normalize : bool If ``True``, returns the normalized LZ (see Notes). @@ -753,7 +756,7 @@ def lziv_complexity(sequence, normalize=False): Notes ----- LZ complexity is defined as the number of different substrings encountered - as the sequence is viewed from begining to the end. + as the sequence is viewed from beginning to the end. Although the raw LZ is an important complexity indicator, it is heavily influenced by sequence length (longer sequence will result in higher LZ). @@ -851,7 +854,7 @@ def lziv_complexity(sequence, normalize=False): def num_zerocross(x, normalize=False, axis=-1): """Number of zero-crossings. - .. versionadded: 0.1.3 + .. versionadded:: 0.1.3 Parameters ---------- @@ -937,7 +940,7 @@ def num_zerocross(x, normalize=False, axis=-1): def hjorth_params(x, axis=-1): """Calculate Hjorth mobility and complexity on given axis. - .. versionadded: 0.1.3 + .. versionadded:: 0.1.3 Parameters ---------- @@ -955,7 +958,7 @@ def hjorth_params(x, axis=-1): ----- Hjorth Parameters are indicators of statistical properties used in signal processing in the time domain introduced by Bo Hjorth in 1970. The - parameters are activity, mobility, and complexity. EntroPy only returns the + parameters are activity, mobility, and complexity. AntroPy only returns the mobility and complexity parameters, since activity is simply the variance of :math:`x`, which can be computed easily with :py:func:`numpy.var`. diff --git a/src/antropy/fractal.py b/src/antropy/fractal.py index 8cd6e99..67e14e9 100644 --- a/src/antropy/fractal.py +++ b/src/antropy/fractal.py @@ -246,6 +246,25 @@ def higuchi_fd(x, kmax=10): Notes ----- + For each interval :math:`k` from 1 to ``kmax``, :math:`k` sub-series are + constructed from the signal :math:`x` of length :math:`N`. Letting + :math:`N_m = \\lfloor (N-m)/k \\rfloor`, the normalised length for each + sub-series starting at :math:`m` is: + + .. math:: + + L_m(k) = \\frac{N-1}{k^2 \\cdot N_m} + \\sum_{j=1}^{N_m - 1} |x_{m+jk} - x_{m+(j-1)k}| + + and the average length across all :math:`k` sub-series is: + + .. math:: L(k) = \\frac{1}{k} \\sum_{m=1}^{k} L_m(k) + + The fractal dimension is then estimated as the slope of the linear + regression of :math:`\\log L(k)` against :math:`\\log(1/k)`: + + .. math:: \\text{FD} = \\frac{d \\log L(k)}{d \\log(1/k)} + Original code from the `mne-features `_ package by Jean-Baptiste Schiratti and Alexandre Gramfort. @@ -257,6 +276,13 @@ def higuchi_fd(x, kmax=10): basis of the fractal theory." Physica D: Nonlinear Phenomena 31.2 (1988): 277-283. + Esteller, R. et al. (2001). A comparison of waveform fractal dimension + algorithms. IEEE Transactions on Circuits and Systems I: Fundamental + Theory and Applications, 48(2), 177-183. + + Paivinen, N. et al. (2005). Epileptic seizure detection: A nonlinear + viewpoint. Computer methods and programs in biomedicine, 79(2), 151-159. + Examples -------- >>> import numpy as np @@ -352,14 +378,14 @@ def detrended_fluctuation(x): Returns ------- alpha : float - the estimate alpha (:math:`\\alpha`) for the Hurst parameter. + The estimated scaling exponent :math:`\\alpha` (related to the Hurst + parameter). - :math:`\\alpha < 1`` indicates a - stationary process similar to fractional Gaussian noise with - :math:`H = \\alpha`. + :math:`\\alpha < 1` indicates a stationary process similar to + fractional Gaussian noise with :math:`H = \\alpha`. - :math:`\\alpha > 1`` indicates a non-stationary process similar to - fractional Brownian motion with :math:`H = \\alpha - 1` + :math:`\\alpha > 1` indicates a non-stationary process similar to + fractional Brownian motion with :math:`H = \\alpha - 1`. Notes ----- @@ -377,16 +403,16 @@ def detrended_fluctuation(x): where :math:`\\text{std}(X, k)` is the standard deviation of the process :math:`X` calculated over windows of size :math:`k`. In this equation, :math:`H` is called the Hurst parameter, which behaves indeed very similar - to the Hurst exponant. + to the Hurst exponent. For more details, please refer to the excellent documentation of the `nolds `_ Python package by Christopher Scholzel, from which this function is taken: https://cschoel.github.io/nolds/nolds.html#detrended-fluctuation-analysis - Note that the default subseries size is set to - entropy.utils._log_n(4, 0.1 * len(x), 1.2)). The current implementation - does not allow to manually specify the subseries size or use overlapping + Note that the subseries sizes range from 4 to 10% of the signal length, + spaced geometrically by a factor of 1.2. The current implementation does + not allow to manually specify the subseries sizes or use overlapping windows. The code is a faster (Numba) adaptation of the original code by Christopher diff --git a/src/antropy/utils.py b/src/antropy/utils.py index 554ed71..53cc48e 100644 --- a/src/antropy/utils.py +++ b/src/antropy/utils.py @@ -5,7 +5,7 @@ import numpy as np from numba import jit -all = ["_embed", "_linear_regression", "_log_n", "_xlog2x"] +all = ["_embed", "_linear_regression", "_log_n", "_xlogx"] epsilon = 10e-9 @@ -106,18 +106,18 @@ def _log_n(min_n, max_n, factor): Parameters ---------- - min_n (float): - minimum value (must be < max_n) - max_n (float): - maximum value (must be > min_n) - factor (float): - factor used to increase min_n (must be > 1) + min_n : float + Minimum value (must be < max_n). + max_n : float + Maximum value (must be > min_n). + factor : float + Factor used to increase min_n (must be > 1). Returns ------- - list of integers: - min_n, min_n * factor, min_n * factor^2, ... min_n * factor^i < max_n - without duplicates + ns : np.ndarray of int64 + Array of the form min_n, min_n * factor, min_n * factor^2, ..., + up to and including the largest value <= max_n, without duplicates. """ max_i = int(floor(log(1.0 * max_n / min_n) / log(factor))) ns = [min_n]