pymgipsim.InputGeneration.meal_energy_content¶
Functions
Calculate daily energy intake based on the baseline values and args.ncb |
|
Estimates the total energy intake from given grams of carbohydrates, carbohydrate fraction, and carbohydrate energy density. |
|
- calculate_daily_energy_intake(scenario_instance: scenario, args)[source]¶
Calculate daily energy intake based on the baseline values and args.ncb
- estimate_energy_intake_from_g_cho(g_cho, f_cho, cho_energy_density=4)[source]¶
Estimates the total energy intake from given grams of carbohydrates, carbohydrate fraction, and carbohydrate energy density.
Parameters: - g_cho: float
Grams of carbohydrates.
- f_cho: float
Fraction of energy intake from carbohydrates.
- cho_energy_density: float, optional
Energy density of carbohydrates in kilocalories per gram. Default is set to glucose_energy_density_kcal_per_g.
Returns: - float
Estimated total energy intake in kilocalories.