Skip to main content

A simple Python library for compartment models

Project description

Compyrtment is a simple Python library to work with compartment models. It’s a simple tool to aid with fast prototyping with models such as the SIR, SIS and SEIR epidemic models or the Lotka-Volterra model of predation. It supports:

  • Designing models with arbitrary states and constant, linear and quadratic couplings between them;

  • Numerical integration of the ODE system of a model;

  • Numerical integration of ‘sensitivity curves’ - the gradient of each curve with respect to parameters as well as initial conditions;

  • Fitting a model’s parameters to existing data;

  • Stochastic simulation using Gillespie’s algorithm

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

Compyrtment-0.5.7.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distribution

Compyrtment-0.5.7-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page