pandemia.components.vaccination_model.default_vaccination_model
Default vaccination model
Module Contents
Classes
Default model of vaccination. |
Attributes
- pandemia.components.vaccination_model.default_vaccination_model.log
- class pandemia.components.vaccination_model.default_vaccination_model.DefaultVaccinationModel(config, clock, number_of_strains, number_of_rho_immunity_outcomes, immunity_length, immunity_period_ticks)
Bases:
pandemia.components.vaccination_model.VaccinationModelDefault model of vaccination.
This supports multiple vaccines, acting on multiple strains of the pathogen. Vaccines update individual immunity according to the same mechanism used to update immunity in the default health model.
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.
- number_of_strainsint
The number of strains appearing the model.
- number_of_rho_immunity_outcomesint
The number of (inner) immunity layers appearing the model.
- immunity_lengthint
The number of time periods the simulation is divided into, from the point of view of immunity updates. These periods should have length immunity_period_ticks in ticks.
- immunity_period_ticksint
How frequently agent immunity is updated, in ticks of the simulation clock.
- vectorize_component(vector_region)
Initializes numpy arrays associated to this component
- initial_conditions(vector_region)
Initial vaccination
- dynamics(vector_region, day, ticks_in_day)
Changes to agent health