Skip to main content

A Python library for computing entropy measures for time series analysis.

Project description

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 :)

Project details


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.4.tar.gz (10.2 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.4-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyentrp-0.8.4.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-1039-azure

File hashes

Hashes for pyentrp-0.8.4.tar.gz
Algorithm Hash digest
SHA256 0f9e584f6e0c10fc58a1f9390e1276ffb88c1c14317bf454e52ecbdcdcfc0135
MD5 dbb8e71aea49290a123975d2685e1473
BLAKE2b-256 a5a6e7f01ac9a93813b54dfba16bf0a4b3c056e6e6aab94705c1e3e27f5ce28f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyentrp-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 90e617fcdb5065f084514387a05dc3dd3471c5d31f6a407835c30afe35281f53
MD5 b86c27c00be587c2c125054693f6b77c
BLAKE2b-256 af1a7955e8ece0f7bb27e73b06889ca30dbe94440a29b48cb2a830cf7de00f6f

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