|
Health-GPS
1.2.2.0
Global Health Policy Simulation model (Health-GPS)
|
Defines the energy balance model data type. More...
#include <energy_balance_model.h>
Public Member Functions | |
| EnergyBalanceModelDefinition (std::unordered_map< core::Identifier, double > energy_equation, std::unordered_map< core::Identifier, std::pair< double, double >> nutrient_ranges, std::unordered_map< core::Identifier, std::map< core::Identifier, double >> nutrient_equations, std::unordered_map< core::Identifier, std::optional< double >> food_prices, std::unordered_map< core::Gender, std::vector< double >> age_mean_height) | |
| Initialises a new instance of the EnergyBalanceModelDefinition class. More... | |
| std::unique_ptr< HierarchicalLinearModel > | create_model () const override |
| Construct a new EnergyBalanceModel from this definition. More... | |
Public Member Functions inherited from hgps::RiskFactorModelDefinition | |
| virtual | ~RiskFactorModelDefinition ()=default |
| Destroys a RiskFactorModelDefinition instance. More... | |
Defines the energy balance model data type.
| hgps::EnergyBalanceModelDefinition::EnergyBalanceModelDefinition | ( | std::unordered_map< core::Identifier, double > | energy_equation, |
| std::unordered_map< core::Identifier, std::pair< double, double >> | nutrient_ranges, | ||
| std::unordered_map< core::Identifier, std::map< core::Identifier, double >> | nutrient_equations, | ||
| std::unordered_map< core::Identifier, std::optional< double >> | food_prices, | ||
| std::unordered_map< core::Gender, std::vector< double >> | age_mean_height | ||
| ) |
Initialises a new instance of the EnergyBalanceModelDefinition 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) |
| std::invalid_argument | for empty arguments |
|
overridevirtual |
Construct a new EnergyBalanceModel from this definition.
Implements hgps::RiskFactorModelDefinition.