nolds: Nonlinear Measures for Dynamical Systems in Python

This repository profile is provided by osrepos.com, an open source repository discovery platform.

nolds: Nonlinear Measures for Dynamical Systems in Python

Summary

nolds is a Python library for calculating nonlinear measures in dynamical systems, specifically designed for one-dimensional time series. It provides implementations for various metrics such as sample entropy, correlation dimension, Lyapunov exponents, and Hurst exponent. This tool is valuable for analyzing the complexity, predictability, and memory of time series data, serving as both a practical utility and a learning resource.

Repository Information

Analyzed by OSRepos on December 18, 2025

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

nolds is a small, numpy-based Python library designed for implementing and learning about nonlinear measures for dynamical systems, specifically based on one-dimensional time series. It offers a comprehensive suite of tools for analyzing the complexity, predictability, and memory of time series data.

Key measures implemented in nolds include:

  • Sample Entropy (sampen): Measures time-series complexity.
  • Correlation Dimension (corr_dim): Quantifies the fractal dimension and complexity.
  • Lyapunov Exponent (lyap_r, lyap_e): Indicates chaos and unpredictability in a system.
  • Hurst Exponent (hurst_rs): Measures long-term memory, useful for analyzing trends.
  • Detrended Fluctuation Analysis (DFA): Estimates the Hurst parameter for non-stationary processes.
  • Generalized Hurst Exponent (mfhurst_b): A generalization for multifractal data series.

Installation

nolds supports Python 2 (>= 2.7) and Python 3 (>= 3.4) and primarily requires the numpy package.

You can easily install nolds using pip:

pip install nolds

Optional dependencies for extended functionality include sklearn for RANSAC line fitting, quantumrandom for true random numbers, and matplotlib for plotting functions in nolds.examples.

Examples

Here's a quick example demonstrating how to use nolds to calculate the Detrended Fluctuation Analysis (DFA) for a random walk:

import nolds
import numpy as np

rwalk = np.cumsum(np.random.random(1000))
h = nolds.dfa(rwalk)
print(f"Hurst parameter (DFA): {h}")

Why Use nolds?

nolds stands out as a valuable tool for researchers and developers working with time series data due to several reasons:

  • Comprehensive Measures: It provides a wide array of nonlinear measures, from entropy to fractal dimensions and Lyapunov exponents, all in one library.
  • Learning Resource: Each function comes with extensive documentation explaining the algorithm and pointing to relevant academic papers, making it an excellent educational tool.
  • Non-Stationary Data: Its Detrended Fluctuation Analysis (DFA) is particularly useful for analyzing non-stationary processes, which are common in real-world data like financial markets.
  • Pythonic and NumPy-based: Built on NumPy, nolds integrates seamlessly into the Python scientific computing ecosystem, ensuring efficiency and ease of use.

Links

Related repositories

Similar repositories that may be relevant next.

requests-html: Pythonic HTML Parsing with JavaScript Support

requests-html: Pythonic HTML Parsing with JavaScript Support

July 25, 2026

requests-html is a Python library designed to simplify HTML parsing and web scraping. It extends the familiar Requests experience with powerful parsing capabilities, including full JavaScript support via Chromium, CSS selectors, and XPath. This makes it an ideal tool for developers needing to interact with dynamic web content.

PythonWeb ScrapingHTML Parsing
Grab: A Powerful Python Web Scraping Framework

Grab: A Powerful Python Web Scraping Framework

July 24, 2026

Grab is a robust Python web scraping framework designed to simplify complex data extraction tasks. It provides comprehensive tools for handling network requests, processing scraped content, and managing asynchronous operations through its powerful Spider component. Developers can leverage features like automatic cookie support, HTTP/SOCKS proxies, and XPath queries for efficient web data collection.

PythonWeb ScrapingFramework
Awesome Django: A Curated List of Essential Django Resources and Packages

Awesome Django: A Curated List of Essential Django Resources and Packages

July 24, 2026

Awesome Django is a comprehensive curated list of outstanding Django apps, projects, and resources. It focuses on mature, well-maintained packages with good documentation and active user bases. This repository serves as an invaluable guide for developers looking for high-quality tools and examples within the Django ecosystem.

DjangoAwesome ListPython
Awesome Django: A Curated List of Essential Resources for Developers

Awesome Django: A Curated List of Essential Resources for Developers

July 24, 2026

Awesome Django is a comprehensive, curated list of exceptional resources, packages, and tools for Django web development. It serves as an invaluable guide for developers looking to enhance their projects with the best the Django ecosystem has to offer. With over 11,000 stars, it's a trusted community-maintained collection.

awesomeawesome-listdjango

Source repository

Open the original repository on GitHub.

9 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️