|
Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
|
Function object to calculate death at low body fat. More...
#include <mortality_factors.h>
Public Member Functions | |
| GetStarvationMortalityThreshold (const double min_bodyfat=DEFAULT_MIN_BODYFAT) | |
| Constructor. More... | |
| double | operator() (const double bodyfat) const |
| Get daily mortality. More... | |
Static Public Attributes | |
| static const double | DEFAULT_MIN_BODYFAT = 0.005 |
| Default minimum body fat threshold [kg/kg]. More... | |
Private Attributes | |
| double | min_bodyfat |
Function object to calculate death at low body fat.
Death simply occurs if proportional body fat drops below a given threshold.
| GetStarvationMortalityThreshold::GetStarvationMortalityThreshold | ( | const double | min_bodyfat = DEFAULT_MIN_BODYFAT | ) |
Constructor.
| min_bodyfat | Minimum body fat threshold [kg/kg]. |
| std::invalid_argument | If min_bodyfat not in [0,1). |
| double GetStarvationMortalityThreshold::operator() | ( | const double | bodyfat | ) | const |
Get daily mortality.
bodyfat<min_bodyfat, else 1.0 | std::invalid_argument | If bodyfat not in [0,1). |
|
static |
Default minimum body fat threshold [kg/kg].
|
private |