Skip to main content

complexeva

Complexity measures for 1D time series, implemented with NumPy, SciPy and Numba.

install

pip install complexeva

Requires Python 3.14 or later.

example

import numpy as np
import complexeva

x = np.random.default_rng(0).standard_normal(2000)  # white noise

complexeva.hfd(x)                          # about 2.0
complexeva.lempel_ziv(x, normalize=True)   # about 1.0
complexeva.compression_complexity(x)       # about 0.96
complexeva.lyapunov_exponent(x)            # largest Lyapunov exponent

measures

function what it returns main parameters reference
hfd(X, k_max=10) Higuchi fractal dimension, 1 (smooth) to 2 (white noise) k_max: largest time interval, 2 to len(X) // 2; report it with results Higuchi 1988, Physica D 31:277
hfd_hilbert(X, k_max=10) hfd of the Hilbert envelope (instantaneous amplitude) as hfd
lempel_ziv(x, method="median", normalize=False) Lempel-Ziv complexity: integer count, or c·log2(n)/n (about 1 for random input) when normalize=True method: binarise by "median", "mean" or "diff" (rising step); a "0101..." string is used as is Kaspar & Schuster 1987, Phys. Rev. A 36:842
lempel_ziv_hilbert(x, method="median", normalize=False) lempel_ziv of the Hilbert envelope as lempel_ziv
compression_complexity(data) zlib-compressed size / raw size of the array bytes, 0 to about 1 depends on the array dtype
lyapunov_exponent(data, tau=1, m=2, dt=1.0, min_tsep=None, trajectory_len=20, fit_offset=0) largest Lyapunov exponent in units of 1/dt; positive suggests chaos, about 0 for periodic signals tau, m: delay embedding; min_tsep: Theiler window (default: mean period); trajectory_len: steps fitted Rosenstein et al. 1993, Physica D 65:117

All functions take a 1D array. Results changed in 0.3.0; see CHANGELOG.md.

licence

MIT

Metadata

Release files for complexeva 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for complexeva 0.3.0
File Size Uploaded Provenance Actions
complexeva-0.3.0.tar.gz 7.6 kB With provenance Details for complexeva-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for complexeva 0.3.0
File Interpreter ABI Platform Actions
complexeva-0.3.0-py3-none-any.whl Python 3 none any Details for complexeva-0.3.0-py3-none-any.whl

Total release size: 14.8 kB

Release files / complexeva-0.3.0.tar.gz

Download URL complexeva-0.3.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
692a55a81b19e38666f8b2001f40cf15a27cb64a645e8316940ac5d53ac69c88
BLAKE2b-256 checksum
How to use checksums
87886b52e884ac19066a796dab41366ade1f3438ca943d216597e86f559eed7c
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 28, 2026.

Transparency log

Release files / complexeva-0.3.0-py3-none-any.whl

Download URL complexeva-0.3.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c30dc29f00ed80477c5021d36f79f755700f4977b005d6e4d9115e581582fcff
BLAKE2b-256 checksum
How to use checksums
e4ac557e2facd698bdfa8c0b4d3a495f0a0e6159514c0e03bc3ad79758e0a441
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 28, 2026.

Transparency log

Security for complexeva 0.3.0

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.

Select from 2 files

Attestation for complexeva-0.3.0.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 28, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page