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.

Tau: A Minimalist Python Coding Agent for Your Terminal

Tau: A Minimalist Python Coding Agent for Your Terminal

September 8, 2026

Tau is a Python port of Pi's minimalist coding agent, designed to live in your terminal. It allows users to make requests like "explain this repo" or "add tests," and it can read files, edit code, and run commands. Beyond its utility, Tau also serves as a teaching project, demonstrating how coding agents are built with a small, readable codebase.

PythonAICoding Agent
Awesome Harness Engineering: Building Reliable AI Agent Systems

Awesome Harness Engineering: Building Reliable AI Agent Systems

September 7, 2026

Awesome Harness Engineering is a comprehensive curated list dedicated to the discipline of designing robust AI agent harnesses. It offers a wealth of resources, patterns, and templates essential for building reliable AI agent systems. Developers can explore tools, best practices, and foundational concepts across various critical areas of agent development.

agent-harnessai-agentsawesome-list
Best of Agent Harnesses: A Curated List for AI Agent Development

Best of Agent Harnesses: A Curated List for AI Agent Development

September 7, 2026

RyanAlberts' Best of Agent Harnesses is a comprehensive, curated, and ranked list of over 100 AI agent harnesses and orchestration frameworks. It provides valuable insights for building reliable agentic systems, offering both human-readable guides and machine-readable formats for agents themselves. The repository is rescored weekly to ensure up-to-date recommendations.

AI AgentsAgent HarnessesLLM Frameworks
Wasm Agents Blueprint: Run Python AI Agents in Your Browser with WebAssembly

Wasm Agents Blueprint: Run Python AI Agents in Your Browser with WebAssembly

September 3, 2026

Wasm Agents Blueprint is an innovative project from Mozilla AI that allows you to run Python-based AI agents directly in your web browser using WebAssembly (Wasm) and Pyodide. It bridges the gap between powerful Python AI frameworks, like the OpenAI Agents SDK, and browser-based applications. This blueprint eliminates the need for complex server setups or Docker containers, offering a streamlined way to experience AI agents.

PythonWebAssemblyAI Agents

Source repository

Open the original repository on GitHub.

11 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 ❤️