Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Implements the energy balance model type. More...
#include <energy_balance_model.h>
Public Member Functions | |
EnergyBalanceModel (const std::unordered_map< core::Identifier, double > &energy_equation, const std::unordered_map< core::Identifier, std::pair< double, double >> &nutrient_ranges, const std::unordered_map< core::Identifier, std::map< core::Identifier, double >> &nutrient_equations, const std::unordered_map< core::Identifier, std::optional< double >> &food_prices, const std::unordered_map< core::Gender, std::vector< double >> &age_mean_height) | |
Initialises a new instance of the EnergyBalanceModel 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 energy balance model type.
The dynamic model is used to advance the virtual population over time.
hgps::EnergyBalanceModel::EnergyBalanceModel | ( | const std::unordered_map< core::Identifier, double > & | energy_equation, |
const std::unordered_map< core::Identifier, std::pair< double, double >> & | nutrient_ranges, | ||
const std::unordered_map< core::Identifier, std::map< core::Identifier, double >> & | nutrient_equations, | ||
const std::unordered_map< core::Identifier, std::optional< double >> & | food_prices, | ||
const std::unordered_map< core::Gender, std::vector< double >> & | age_mean_height | ||
) |
Initialises a new instance of the EnergyBalanceModel class.
energy_equation | The energy coefficients for each nutrient |
nutrient_ranges | The minimum and maximum nutrient values |
nutrient_equations | The nutrient coefficients for each food group |
food_prices | The unit price for each food group |
age_mean_height | The mean height at all ages (male and female) |
|
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.