Skip to main content

EristroPy: End-to-end entropy analysis of time series signals

Project description

EristroPy: End-to-End Entropy Analysis of Time Series Signals

Overview and Introduction

Welcome to EristroPy, a powerful Python package designed for end-to-end entropy analysis of time series signals via entropy. EristroPy provides an all-in-one solution for researchers and practitioners looking to perform entropy/variability analysis of time series data.

For more detailed information, check out the documentation.

Features & Benefits

EristroPy offers a multitude of features aimed at simplifying the time series analysis process:

  • Automatic Signal Stationarity: Ensure the validity of your entropy and variability analyses by automatically rendering signals stationary.
  • Scalable Entropy Calculations: Utilizes Numba's just-in-time compilation for efficient sample and permutation entropy calculations.
  • Optimal Parameter Selection: Provides intelligent suggestions for entropy measure parameters through rigorous statistical approaches.

Installation

The easiest way to install EristroPy is using pip by calling:

pip install eristropy

Usage

Using EristroPy, you can go from having the base time series signals, to a coherent & optimized entropy estimates in just a few lines of code. For instance, consider the following problem of estimating the sample entropy of some synthetic time series signals:

import numpy as np
import pandas as pd
from eristropy.stationarity import StationarySignals
from eristropy.sample_entropy import SampleEntropy

signal_ids = np.repeat(["signal_1", "signal_2"], 100)
timestamps = np.tile(np.arange(100), 2)
rng = np.random.default_rng(17)
signal_1_values = rng.uniform(-5, 5, size=(100,))
signal_2_values = rng.uniform(-5, 5, size=(100,))
values = np.concatenate((signal_1_values, signal_2_values))

df = pd.DataFrame({
    "signal_id": signal_ids,
    "timestamp": timestamps,
    "value": values
})

signals = StationarySignals(df, method="difference")
stationary_df = signals.make_stationary_signals()

sampen = SampleEntropy(stationary_df)
result_df = sampen.compute_all_sampen(optimize=True, estimate_uncertainty=True)

In just a few lines of code, you have access to state-of-the-art results that follows & implements best practices. It's that easy!

License

EristroPy is released under the MIT License. See the LICENSE file for more details.

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

eristropy-0.1.0.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

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

eristropy-0.1.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file eristropy-0.1.0.tar.gz.

File metadata

  • Download URL: eristropy-0.1.0.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.6.0

File hashes

Hashes for eristropy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 961e2d923adabf5f5ff3bbc988b8d69841de1430405f5e6258383f127e7c2695
MD5 8fc6c4901bee0cff6e3d64940c40b7bd
BLAKE2b-256 6f98e9c20a5a7a5a9d336df21583efb7fa175394aa7f3cce2d05380363b0ad2e

See more details on using hashes here.

File details

Details for the file eristropy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: eristropy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Darwin/22.6.0

File hashes

Hashes for eristropy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a35b08b13d0604b1ad77a486c8d6484d1b5e1c4379ff9be53b8ac6387a98c5a4
MD5 6fde48b821de98c2c6a881c48eafb676
BLAKE2b-256 88ea3bbff7adf41712ef7d6c6a5f276a58ca855a9cf2de1c50d5c0382a7412c4

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