Skip to main content

ntsa — nonlinear time-series analysis for dynamical-system models

Characterizes the dynamical regime of a model from a single long trajectory: delay embedding (optimal lag + false nearest neighbours), Lyapunov exponents, regime classification (fixed point / limit cycle period-k / frequency-locked / quasiperiodic / chaotic), and a per-case diagnostic figure — one row of 8 panels [time series | PSD | 3-D delay portrait | first-return map of local maxima | plane-crossing Poincaré section | recurrence plot | 3-D MDS | Lyapunov spectrum] — Key Reference: Kantz & Schreiber, Nonlinear Time Series Analysis (2004).

Documentation: andreanovoa.github.io/ntsa | Tutorial: tutorial_ntsa.ipynb

Example:

image

Install

pip install ntsa            # once released; until then (dynamodels is not on PyPI yet either):
pip install "dynamodels @ git+https://github.com/andreanovoa/dynamodels" \
            "ntsa @ git+https://github.com/andreanovoa/ntsa"

Quickstart

from dynamodels.physical import Lorenz63
from ntsa import characterize as chz

chz.characterize([Lorenz63()], pdf_name='figs/l63.pdf')
python -m ntsa.characterize          # 4-case demo -> figs/ntsa_defaults.pdf (+ .png)

Works with any model implementing the model protocoldynamodels is the reference implementation. Part of the same ecosystem as romda (real-time bias-aware data assimilation).

Development

pip install -e ".[dev]"
python -m pytest tests/
ruff check ntsa/ tests/

Releases publish to PyPI via trusted publishing on version tags; docs deploy to GitHub Pages on push to main (see .github/workflows/).

License

MIT

Download files

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

Source Distribution

ntsa-0.1.0.tar.gz (31.8 kB view details)

Uploaded Source

Built Distribution

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

ntsa-0.1.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ntsa-0.1.0.tar.gz
  • Upload date:
  • Size: 31.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ntsa-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b3f6fdb749690b9e3266bdc6fff493db9682d684e1777d45571b7c2aca9b0c21
MD5 235d5148c87e4461f235d31a906be041
BLAKE2b-256 2469fcf35624905519adf7b15b96bce151c7629a7364e4751e332580c20a06c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for ntsa-0.1.0.tar.gz:

Publisher: release.yml on andreanovoa/ntsa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: ntsa-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ntsa-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d32bea98905282faae680cdc1c703ac6566e3d2b5768a16b23acf81d8c9c6021
MD5 8fe78b00d14e85f79db9c83ed3d93aee
BLAKE2b-256 d87ddfb222fd34fcb673564c63d1066ec2ae0852cb179ea050952b4df399c9a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ntsa-0.1.0-py3-none-any.whl:

Publisher: release.yml on andreanovoa/ntsa

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page