Skip to content


class SIRState < State

SIR state model.

The initial model for time is:

The transition model for time is: where is the number of interactions between infectious and susceptible individuals, the number of newly infected individuals, and the number of newly recovered individuals.

Population counts are then updated:

Member Variables

Name Description
τ:Random<Integer> Number of susceptible-infectious interactions.
Δi:Random<Integer> Newly infected population.
Δr:Random<Integer> Newly recovered population.
s:Random<Integer> Susceptible population.
i:Random<Integer> Infectious population.
r:Random<Integer> Recovered population.