Skip to content

laser.measles.abm.components.process_disease

process_disease

Component defining the DiseaseProcess, which simulates the disease progression in the ABM model with MCV1.

DiseaseParams

Bases: BaseModel

inf_scale property

Gamma distribution scale parameter derived from inf_mean and inf_sigma.

inf_shape property

Gamma distribution shape parameter derived from inf_mean and inf_sigma.

DiseaseProcess(model, params=None)

Bases: BaseComponent

This component provides disease progression (E->I->R) It is used to update the infectious timers and the exposed timers.

nb_gamma_update(count, timers_0, timers_1, state, shape, scale, flow, patch_id)

Numba compiled function to check and update exposed timers for the population in parallel.

nb_state_update(count, timers, state, new_state, flow, patch_id)

Numba compiled function to check and update infection timers for the population in parallel.

numpy_gamma_update(count, timers_0, timers_1, state, shape, scale, flow, patch_id)

Numpy function to check and update exposed timers for the population.

numpy_state_update(count, timers, state, new_state, flow, patch_id)

Numpy function to check and update infection timers for the population.