Modular Megafauna Model 1.1.5
A physiological, dynamic herbivore simulator in C++.
Loading...
Searching...
No Matches
Fauna::GivenPointAllometry Struct Reference

Parameters for an allometric relationship with exponent and one point. More...

#include <hft.h>

Public Member Functions

double extrapolate (const double bodymass_male_adult, const double bodymass) const
 Calculate the value for a different body mass. More...
 

Public Attributes

double exponent
 Exponent $e$ in $f(M) = c * M^e$. More...
 
double value_male_adult
 Value $f(m)$ if $m$ is Hft::body_mass_male. More...
 

Detailed Description

Parameters for an allometric relationship with exponent and one point.

The allometric relationship is $ f(M) = c * M^e $, where $c$ is the coefficient and $e$ is the exponent. The coefficient is calculated from a given point $(x|y)$ with $x = f(y) = c * y^e \iff c = x * y^{-e} $.

Generally, $y$ is the body mass of an adult male (Hft::body_mass_male). This is because males are typically larger than females. Allometric extrapolating from smaller females to larger males would be more uncertain than the other way round.

Member Function Documentation

◆ extrapolate()

double GivenPointAllometry::extrapolate ( const double  bodymass_male_adult,
const double  bodymass 
) const

Calculate the value for a different body mass.

Parameters
bodymass_male_adultThe body mass of an adult, male animal. See Hft::body_mass_male.
bodymassCurrent body mass of the animal for which the value is to be calculated.
Exceptions
std::invalid_argumentIf any given parameter is outside of the allowed range.

Member Data Documentation

◆ exponent

double Fauna::GivenPointAllometry::exponent

Exponent $e$ in $f(M) = c * M^e$.

◆ value_male_adult

double Fauna::GivenPointAllometry::value_male_adult

Value $f(m)$ if $m$ is Hft::body_mass_male.


The documentation for this struct was generated from the following files: