complexeva
Fast, low-memory complexity measures for 1D time series (EEG, MEG, physiology).
pip install complexeva # Python 3.14+
import numpy
import complexeva
signal = numpy.random.randn(1000) # one signal, shape (time,)
complexeva.hfd(signal) # one float
batches
Pass every signal at once with time on the last axis; you get one value per signal, in the shape of the other axes. Each value is identical to calling the measure on that signal alone.
eeg = numpy.random.randn(64, 1000) # (channels, time)
complexeva.hfd(eeg) # shape (64,)
study = numpy.random.randn(20, 64, 1000) # (subjects, channels, time)
complexeva.sample_entropy(study) # shape (20, 64)
recording = numpy.random.randn(1000, 64) # time first? put time last
complexeva.dfa(recording.T) # shape (64,)
windows = numpy.lib.stride_tricks.sliding_window_view(signal, 200)[::10] # (windows, 200), no copy
complexeva.permutation_entropy(windows) # one value per window
Batches work for every measure except lyapunov_exponent, compression_complexity, the _hilbert variants and binary-string lempel_ziv, which take one signal. multiscale_entropy adds a last axis of scales, and hjorth returns a (mobility, complexity) pair of arrays. A non-finite sample raises an error naming its full index; a constant signal gives NaN in its place. NUMBA_NUM_THREADS limits the threads.
measures
| measure | input | paper | |
|---|---|---|---|
Higuchi fractal dimensionhfd, hfd_hilbert |
(…, time) | Higuchi 1988 Varley 2020 |
|
Katz fractal dimensionkatz_fd |
(…, time) | Katz 1988 |
|
Petrosian fractal dimensionpetrosian_fd |
(…, time) | Petrosian 1995 |
|
Lempel–Ziv complexitylempel_ziv, lempel_ziv_hilbert |
(…, time) | Kaspar & Schuster 1987 Schartner 2017 |
|
sample entropysample_entropy |
(…, time) | Richman & Moorman 2000 |
|
approximate entropyapproximate_entropy |
(…, time) | Pincus 1991 |
|
multiscale entropymultiscale_entropy |
(…, time) | Costa 2002 Wu 2013 ( method="modified") |
|
fuzzy entropyfuzzy_entropy |
(…, time) | Chen 2007 |
|
permutation entropypermutation_entropy |
(…, time) | Bandt & Pompe 2002 |
|
spectral entropyspectral_entropy |
(…, time) | Inouye 1991 |
|
SVD entropysvd_entropy |
(…, time) | Roberts 1999 |
|
detrended fluctuation analysisdfa |
(…, time) | Peng 1994 |
|
correlation dimensioncorrelation_dimension |
(…, time) | Grassberger & Procaccia 1983 |
|
Hjorth mobility and complexityhjorth |
(…, time) | Hjorth 1970 |
|
largest Lyapunov exponentlyapunov_exponent |
1D | Rosenstein 1993 |
|
compression complexitycompression_complexity |
1D | Cilibrasi & Vitányi 2005 |
speed and memory vs other packages
Batches, against a loop of the best other package (NUMBA_NUM_THREADS sets the thread count):
validation
licence
MIT
Metadata
Release files for complexeva 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| complexeva-0.6.1.tar.gz | 74.2 kB | With provenance | Details for complexeva-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| complexeva-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for complexeva-0.6.1-py3-none-any.whl |
Total release size: 128.9 kB
Release files / complexeva-0.6.1.tar.gz
| Download URL | complexeva-0.6.1.tar.gz |
|---|---|
| Size | 74.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f9b0bc09bd3ac25cef795571d583c8907cd5dffaf95fe01588514d2084260ef
|
|
BLAKE2b-256 checksum How to use checksums |
6247d8e37e831503a08939ba82d3f8f35f0445c878e8c3845bfc1d3de0a55ada
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logRelease files / complexeva-0.6.1-py3-none-any.whl
| Download URL | complexeva-0.6.1-py3-none-any.whl |
|---|---|
| Size | 54.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c57c465023c71f1a1d8284ae4d50d001c3bbb973237bff9bbde690b51ae5c65b
|
|
BLAKE2b-256 checksum How to use checksums |
c468deec1f1e73b346f9d4a6fe6bc14849a57204ec78b7db213a246545420513
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logSecurity for complexeva 0.6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for complexeva-0.6.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.