Skip to content

Example SIR

A simple SIR model with frequency-dependent transmission

ExampleSirModel(config)

Bases: Model

A simple deterministic SIR model.

Source uses beta * S * I with a normalized population (N = 1), so the frequency-dependent form (beta * S * I / N) coincides with the source's density-dependent term.

Source code in compartment/models/basic_sir_model/model.py
def __init__(self, config):
    super().__init__(config)