pandemia.components.health_model.default_health_model
Default health model
Module Contents
Classes
Default model of agent health. |
Attributes
- pandemia.components.health_model.default_health_model.log
- class pandemia.components.health_model.default_health_model.DefaultHealthModel(config, scale_factor, clock)
Bases:
pandemia.components.health_model.HealthModelDefault model of agent health.
Instead of the compartmental description of health often applied in epidemic models, the default health model describes an agent’s health with five attributes. These are sigma immunity (protection against infection), rho immunity (protection against severe outcomes), infectiousness, disease and strain. Low-level C functions, wrapped in Python functions, implement changes to agent health.
Parameters:
- configConfig
A Pandemia Config object. A sub-config of the full config, containing the data used to configure this component.
- clockClock
A Pandemia Clock object, discretizing the day.
- scale_factorfloat
The scale factor, coming from the full config.
- vectorize_component(vector_region)
Initializes vector region numpy arrays related to this component.
- initial_conditions(vector_region)
Establishes initial conditions for default health model.
- update(vector_region, t)
Updates agent health.
- dynamics(vector_region, t)
The transmission dynamics.
- infect_wrapper(vector_region, t)
The infection system.