laser.measles.abm.components.tracker_age_pyramid
laser.measles.abm.components.tracker_age_pyramid
Age Pyramid Tracker
This component tracks the age distribution of the population.
laser.measles.abm.components.tracker_age_pyramid.AgePyramidTracker(model, verbose=False, params=None)
Bases: BasePhase
Track the age distribution of the population.
Example:
1 2 3 4 5 6 7 8 9 10 11 | |
laser.measles.abm.components.tracker_age_pyramid.AgePyramidTrackerParams
Bases: BaseModel
Parameters for the age-pyramid tracker (recording frequency and age bins).
Example:
1 2 3 4 5 | |
laser.measles.abm.components.tracker_age_pyramid.AgePyramidTrackerParams.validate_age_bins(v)
Validate that age_bins are in strictly increasing order.
laser.measles.abm.components.tracker_age_pyramid.AgePyramidTrackerParams.validate_frequency(v)
Validate that frequency is one of yearly, monthly, or daily.