Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Implements the dynamic hierarchical linear model (energy balance) type. More...
#include <energy_balance_hierarchical_model.h>
Public Member Functions | |
EnergyBalanceHierarchicalModel (const std::map< core::IntegerInterval, AgeGroupGenderEquation > &equations, const std::map< core::Identifier, core::Identifier > &variables, const double boundary_percentage) | |
Initialises a new instance of the EnergyBalanceHierarchicalModel class. More... | |
HierarchicalModelType | type () const noexcept override |
Gets the model type identifier. More... | |
std::string | name () const noexcept override |
Gets the model name. More... | |
void | generate_risk_factors (RuntimeContext &context) override |
Generates the initial risk factors for a population and newborns. More... | |
void | update_risk_factors (RuntimeContext &context) override |
Update risk factors for population. More... | |
![]() | |
virtual | ~HierarchicalLinearModel ()=default |
Destroys a HierarchicalLinearModel instance. More... | |
Implements the dynamic hierarchical linear model (energy balance) type.
The dynamic model is used to advance the virtual population over time.
hgps::EnergyBalanceHierarchicalModel::EnergyBalanceHierarchicalModel | ( | const std::map< core::IntegerInterval, AgeGroupGenderEquation > & | equations, |
const std::map< core::Identifier, core::Identifier > & | variables, | ||
const double | boundary_percentage | ||
) |
Initialises a new instance of the EnergyBalanceHierarchicalModel class.
equations | The linear regression equations |
variables | The factors delta variables mapping |
boundary_percentage | The boundary percentage to sample |
|
overridevirtual |
Generates the initial risk factors for a population and newborns.
context | The simulation run-time context |
std::logic_error | the dynamic model does not generate risk factors. |
Implements hgps::HierarchicalLinearModel.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Gets the model type identifier.
Implements hgps::HierarchicalLinearModel.
|
overridevirtual |
Update risk factors for population.
context | The simulation run-time context |
Implements hgps::HierarchicalLinearModel.