Dynamic mode decomposition (DMD)is a tool for analyzing the dynamics of nonlinear systems.
This is an experimental DMD codebase for research purposes.
Alternatively, check out PyDMD, a professionally maintained open source DMD codebase for Python.
Installation:
pip install dmdlab
Usage:
from dmdlab import DMD, plot_eigs
import numpy as np
from scipy.linalg import logm
# Generate toy data
ts = np.linspace(0,6,50)
theta = 1/10
A_dst = np.array([[np.cos(theta), -np.sin(theta)],
[np.sin(theta), np.cos(theta)]])
A_cts = logm(A_dst)/(ts[1]-ts[0])
x0 = np.array([1,0])
X = np.vstack([expm(A_cts*ti)@x0 for ti in ts]).T
# Fit model
model = DMD.from_full(X, ts)
# Print the eigenvalue phases
print(np.angle(model.eigs))
>>> [0.1, -0.1]
For a technical reference, check out the DMD book.
Metadata
Release files for dmdlab 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dmdlab-0.1.1.tar.gz | 8.0 kB | Without provenance | Details for dmdlab-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dmdlab-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for dmdlab-0.1.1-py3-none-any.whl |
Total release size: 15.9 kB
Release files / dmdlab-0.1.1.tar.gz
| Download URL | dmdlab-0.1.1.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cecabdb4189942c3410094557b6b3588924fc4b9313b5f291c739e154168c75
|
|
BLAKE2b-256 checksum How to use checksums |
cd9dfbd7c439bdd2033f87e78c917ff9e13585a72f7d9423bf764eff9e28674c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.6 Linux/4.15.0-96-generic
|
Release files / dmdlab-0.1.1-py3-none-any.whl
| Download URL | dmdlab-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f39934ba350284aa2850e90922debcba6eca62c30526fd6af5e54800c0167875
|
|
BLAKE2b-256 checksum How to use checksums |
87e453b981a7c1795143234f117cd10dcc031912bca2023baae4cb392988d8d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.7.6 Linux/4.15.0-96-generic
|
Security for dmdlab 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.