Skip to main content

Stochastic processes in Python

Project description

stopro — Elementary Stochastic Processes

stopro is a small Python library for generating and simulating common (multivariate) stochastic processes.

Currently included processes:

  1. Wiener process
  2. Ornstein–Uhlenbeck process
  3. Integrated Ornstein–Uhlenbeck process
  4. Exponential Ornstein–Uhlenbeck process
  5. Geometric Brownian Motion
  6. Colored Geometric Brownian Motion
  7. Gillespie Replicator
  8. Kimura Replicator
  9. White Replicator
  10. Colored Replicator
  11. Multispecies Moran process
    (discrete particle kinetics & diffusion approximation)
  12. Competitive Lotka–Volterra process
    (discrete particle kinetics & diffusion approximation)

Examples and documentation are provided as Jupyter notebooks.


Quick start (recommended)

This project uses uv, a fast Python package manager and virtual environment tool. You need to install uv on your system first. When that's done:

git clone https://github.com/dirkbrockmann/stopro.git
cd stopro
make notebook

Using stopro in your own code

import stopro

Installation via pip

You can now install stopro directly from PyPI:

pip install stopro

To install the latest development version from source:

pip install git+https://github.com/dirkbrockmann/stopro.git

Or clone and work with the code locally:

git clone https://github.com/dirkbrockmann/stopro.git
cd stopro
pip install -e .

Running the examples

To run the Jupyter notebook examples, install stopro with the extra dependencies:

pip install "stopro[examples]"

This will install all required packages for the example notebooks.

Running the benchmarks

To run the Jupyter notebook examples, install stopro with the extra dependencies:

pip install "stopro[bench]"

This will install all required packages for the example notebooks.


License

MIT

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

stopro-0.8.1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

stopro-0.8.1-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file stopro-0.8.1.tar.gz.

File metadata

  • Download URL: stopro-0.8.1.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for stopro-0.8.1.tar.gz
Algorithm Hash digest
SHA256 b8c1af1e549b1c8fe5b8971640b994bd96cb58ebb8ef39deb010516a7dcb0d72
MD5 47132bf2c7c5169c7f08c2f81640a0b7
BLAKE2b-256 4947fff2b5b4d36c4ca14db4aa42216089d0944fcbf956a98257abe89be458b3

See more details on using hashes here.

File details

Details for the file stopro-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: stopro-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for stopro-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a52bbfff947cbf28ca37ae28f0a000594f7bfe98148f4de57b8771562f6653f
MD5 53a0d6ae05c21ee595b0b295a695ea48
BLAKE2b-256 5a0d4b6ec64eaf3f8d0b5e1c5b67ef477736c0b670ea2c075f9b9306611ebd32

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