Skip to main content

pyEntropy (pyEntrp)

codecov py38 status py39 status py310 status

  1. Quick start
  2. Usage
  3. Contributors and participation

This is a small set of functions on top of NumPy that help to compute different types of entropy for time series analysis.

The library provides functions for computing the following types of entropy:

  • Shannon Entropy shannon_entropy
  • Sample Entropy sample_entropy
  • Multiscale Entropy multiscale_entropy
  • Composite Multiscale Entropy composite_multiscale_entropy
  • Permutation Entropy permutation_entropy
  • Multiscale Permutation Entropy multiscale_permutation_entropy
  • Weighted Permutation Entropy weighted_permutation_entropy

Quick start

pip install pyentrp

poetry add pyentrp

Usage

from pyentrp import entropy as ent
import numpy as np


ts = [1, 4, 5, 1, 7, 3, 1, 2, 5, 8, 9, 7, 3, 7, 9, 5, 4, 3]
std_ts = np.std(ts)
sample_entropy = ent.sample_entropy(ts, 4, 0.2 * std_ts)

Contributors and participation

Contributions are very welcome, documentation improvements/corrections, bug reports, even feature requests :)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyentrp-0.8.3.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyentrp-0.8.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file pyentrp-0.8.3.tar.gz.

File metadata

  • Download URL: pyentrp-0.8.3.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.11 Linux/5.15.0-1038-azure

File hashes

Hashes for pyentrp-0.8.3.tar.gz
Algorithm Hash digest
SHA256 ce38b1dff73977e9b5e1507535097c4dafbc002a3dcd80ad68505b9e95adb44e
MD5 72d3427bfcc655be87c1652f048b12fb
BLAKE2b-256 c3f2f7029b88fe7bf79e5156f5a6ed644c8c0045b1ce255fed08164c00245bc0

See more details on using hashes here.

File details

Details for the file pyentrp-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: pyentrp-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.11 Linux/5.15.0-1038-azure

File hashes

Hashes for pyentrp-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 753b7ac94b4029e07a7bc776049c4841a9723946ff67c226ca3f9b5e114b84a9
MD5 e66ad342994ca87dd3bd54a35f18db06
BLAKE2b-256 3049e164ee2ff636ecd443c24c79f5485634ca0aac95d2f57ebb39e8791eaec1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page