Skip to main content

mzprojection package

Project description

mzprojection

Projection operator method for statistical data analysis (Fortran90 or Python3)
Language grade: Python

Overview

The Mori-Zwanzig projection operator method splits ensembles of the analyzed time-series data into correlated and uncorrelated parts with regard to the variable of interests .

Contents

fortran/ - Fortran90 source code. See README.txt in detail  
python/ - Python3 source code. See README.txt in detail  
sample_data/ - A sample of time-series data and its projected results  
QUICK_START.txt - Simple explanation on how to run this source code  

Usage (Python3)

mzprojection requires external packages: numpy, scipy.

(i) Input data is ensembles of the analyzed time-series data f(t)^i and the variable of interest u(t)^i, du(t)^i/dt in a prescribed format (nperiod points in time range, and nsample points in ensambles, namely u[0:nperiod,0:nsample], dudt[0:nperiod,0:nsample], f[0:nperiod,0:nsample], and time step size delta_t).

(ii) mzprojection_ensemble_of_time_series calculates the Mori-Zwanzig projection of f(t)^i on u(t)^i as,
f(t)=\Omega u(t)+s(t)+r(t),
s(t)=-\int_0^t \Gamma(t) u(t-v)dv.
The Markov coefficient \Omega, the memory function \Gamma(t) and the uncorrelated term r(t) are obtained as outputs. (Some correlations, e.g., <r(t)u>, are also obtained to check the result.)

from mzprojection import mzprojection_ensemble_of_time_series

omega, memoryf, s, r, uu, ududt, fdudt, rr, rdudt, ru, fu, ff = \
    mzprojection_ensemble_of_time_series(nsample, nperiod, delta_t, u, dudt, f)

See also python/Demo_Jan2021.ipynb, which clearly shows examples of usage including output figures.

Reference

Shinya Maeyama and Tomo-Hiko Watanabe, "Extracting and Modeling the Effects of Small-Scale Fluctuations on Large-Scale Fluctuations by Mori-Zwanzig Projection operator method", J. Phys. Soc. Jpn. 89, 024401 (2020).
doi

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

mzprojection-pkg-0.0.3.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

mzprojection_pkg-0.0.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file mzprojection-pkg-0.0.3.tar.gz.

File metadata

  • Download URL: mzprojection-pkg-0.0.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

File hashes

Hashes for mzprojection-pkg-0.0.3.tar.gz
Algorithm Hash digest
SHA256 6156ede35f7bb7a44c91fe30793f5c3e5d851b60c0d3747c590082e33a6e4768
MD5 7c86ba99459da06906ade74fa926c0b1
BLAKE2b-256 9a9797bba1620fef16225f63c9aae4a5cef97625b9813ef31d27c9b944c2e620

See more details on using hashes here.

File details

Details for the file mzprojection_pkg-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mzprojection_pkg-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.2

File hashes

Hashes for mzprojection_pkg-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9714f3b4e73d1808a4e88017a592e134c4d0df84487ba9f70c263f45a587fc02
MD5 f2ffde5243dd68f7f72f38f398d46b97
BLAKE2b-256 e085d931d995e252ffc695697f6294beb084c5f3d48e92a0baf07d8daaca5496

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