Lempel–Ziv analysis
for NumPy arrays.¶
Discretize continuous signals, calculate complexity and entropy, and compare sequences along any array axis.
Python 3.10+ NumPy MIT license
2,000 samples × 4 channels × 3 trials12 sequences, one result per channel and trial.discretizeDiscretization
Mean, median, equal-width bins, quantile bins, and ordinal patterns. Register custom methods or pass a callable.
Methods and parametersh · complexity · emcArray calculations
Select the sequence axis. Preserve channel and trial dimensions in the output. Distribute independent calculations across processes.
Arrays and executiondistance · nidInformation distance
Calculate all-pairs distance matrices or compare corresponding sequences in two arrays using a shared symbol encoding.
Distance calculationsNumerical examples¶
All examplesEntropy and effective measure complexity¶
Compare constant, periodic, persistent, and independent sequences. Inspect estimator choice and sequence-length dependence.
Pairwise information distance¶
Compare sequences in a collection and corresponding pairs across arrays. Examine matrix ordering and finite-length self-distances.
Documentation¶
Usage guides, function signatures, result conventions, and reproducible figure source.
Numerical calculations are provided by lzcomplexity. lzsuite adds array handling, discretization, and process-level parallelism.