InfectionProcess#
- InfectionProcess(model, params=None, verbose=False)[source]#
Component for simulating SEIR disease progression with daily timesteps.
This class implements a stochastic SEIR infection process that models disease transmission and progression through compartments. It uses daily rates and accounts for mixing between different population groups.
The SEIR infection process follows these steps: 1. Calculate force of infection based on:
Base transmission rate (beta)
Seasonal variation
Population mixing matrix
Current number of infectious individuals
Stochastic transitions using binomial sampling: - S → E: New exposures based on force of infection - E → I: Progression from exposed to infectious - I → R: Recovery from infection
Update population states for all compartments
- Parameters:
model (object) – The simulation model containing population states and parameters
verbose (bool, default=False) – Whether to print detailed information during execution
params (InfectionParams | None, default=None) – Component-specific parameters. If None, will use default parameters
Notes
The infection process uses daily rates and seasonal transmission that varies sinusoidally over time with a period of 365 days.