healthsciencecalculator.get_tdee
Functions
|
Calculate the Total Daily Energy Expenditure (TDEE) based on BMR and activity level. |
Module Contents
- healthsciencecalculator.get_tdee.get_tdee(bmr: float, activity_level: str) float[source]
Calculate the Total Daily Energy Expenditure (TDEE) based on BMR and activity level.
- Parameters:
bmr (float) – The Basal Metabolic Rate (must be positive).
activity_level (str) – The activity level (allowed values: ‘sedentary’, ‘lightly active’, ‘moderately active’, ‘very active’, ‘extra active’).
- Returns:
The calculated TDEE (kcal/day).
- Return type:
float
Example
>>> get_tdee(bmr = 1500.0, activity_level = 'sedentary') 1800.0
- Raises:
ValueError – If bmr <= 0 or activity_level is not recognized.
Notes
- Sample multipliers (you may choose different ones if needed):
sedentary: 1.2
lightly active: 1.375
moderately active: 1.55
very active: 1.725
extra active: 1.9