Skip to main content

Locally stationary process simulation

Project description

lsp-sim

Locally Stationary Process Simulation in Python

This package provides tools to simulate locally stationary processes (LSPs) in Silverman’s sense with a flexible covariance structure: stationary correlation part $r(\tau)$ and time-varying power part $q(\eta)$, both chosen as Gaussian functions.

It includes the functions:

-lsp_f0_sim for simulating LSP realizations

-wv_lsp for calculating the Wigner-Ville distribution of the LSP

Jupyter Demo

Use the simple Jupyter notebook demo demo_lsp_sim.ipynb for exploring parameter effects.
Reproducible simulations can be obtained by fixing random seeds.
Full source code and notebook demo are available on GitHub https://github.com/RacheleAnderson/lsp-sim/

The demo visualizes:

  • Simulated realizations showing different behaviors of the realizations when changing the parameters (3 cases)
  • Covariance matrices for the 3 cases of different parameter configurations
  • Wigner-Ville distribution for the 3 cases of different parameter configurations

Background

The model is presented in the research paper

Anderson, R., Sandsten, M. Time-frequency feature extraction for classification of episodic memory. EURASIP J. Adv. Signal Process. 2020, 19 (2020).

available online (Open Access) at: https://doi.org/10.1186/s13634-020-00681-8

Previous Matlab code is available for repeating the study, see https://github.com/RacheleAnderson/lsp-time-frequency.

This Python package is a simpler version with the limited scope of simulating LSP realizations according to the model.

License

MIT License — see LICENSE for details.

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

lsp_sim-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

lsp_sim-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file lsp_sim-0.1.1.tar.gz.

File metadata

  • Download URL: lsp_sim-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for lsp_sim-0.1.1.tar.gz
Algorithm Hash digest
SHA256 61958db85ff68000bed7a512cd45e78609fe331a6bd4e13193e0930809c32a65
MD5 cf69b2fcc94f430c855906e19d500943
BLAKE2b-256 06c921a94cdccae3c197b79786ba05f78b9026363fdf428487e3db21cff4406a

See more details on using hashes here.

File details

Details for the file lsp_sim-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lsp_sim-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for lsp_sim-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22d0a24f5e04d4a90db79c7e28a992cad1b62bb2e73c479ff4e5d88c1bf5e189
MD5 ba12538bd0ebb2b32bbaadb5a894d790
BLAKE2b-256 b68c27c39beee22183aed99b0e9e03d69d06aab739176095f07efea5ea0e6fee

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