laser.measles.components.base_constant_pop
laser.measles.components.base_constant_pop
Component defining the ConstantPopProcess, which handles the birth events in a model with constant population - that is, births == deaths.
laser.measles.components.base_constant_pop.BaseConstantPopParams
Bases: BaseVitalDynamicsParams
Parameters specific to the births process component.
laser.measles.components.base_constant_pop.BaseConstantPopParams.crude_death_rate
property
Death rate is always equal to birth rate to maintain constant population.
laser.measles.components.base_constant_pop.BaseConstantPopProcess(model, verbose=False, params=None)
Bases: BaseVitalDynamicsProcess
A component to handle the birth events in a model with constant population - that is, births == deaths.
Attributes:
1 2 3 4 | |
Initialize the Births component.
Parameters:
1 2 3 | |
laser.measles.components.base_constant_pop.BaseConstantPopProcess.lambda_birth
property
birth rate per tick
laser.measles.components.base_constant_pop.BaseConstantPopProcess.mu_death
property
death rate per tick
laser.measles.components.base_constant_pop.BaseConstantPopProcess.__call__(model, tick)
Adds new agents to each patch based on expected daily births calculated from CBR. Calls each of the registered initializers for the newborns.
Args:
1 2 | |
Returns:
1 | |
This method performs the following steps:
1 | |
laser.measles.components.base_constant_pop.BaseConstantPopProcess.calculate_capacity(model)
Calculate the capacity of the model.