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

Reproduction rate increases linearly with fat reserves up to maximum. More...

#include <reproduction_models.h>

Public Member Functions

 ReproductionLinear (BreedingSeason breeding_season, const double max_annual_increase)
 Constructor. More...
 
double get_offspring_density (const int day_of_year, const double body_condition) const
 Get the amount of offspring for one day in the year. More...
 

Private Attributes

const BreedingSeason breeding_season
 
const double max_annual_increase
 

Detailed Description

Reproduction rate increases linearly with fat reserves up to maximum.

Constructor & Destructor Documentation

◆ ReproductionLinear()

ReproductionLinear::ReproductionLinear ( BreedingSeason  breeding_season,
const double  max_annual_increase 
)

Constructor.

Parameters
max_annual_increaseMaximum annual offspring count for one female under full fat reserves.
breeding_seasonWhen parturition occurs.
Exceptions
std::invalid_argumentIf max_annual_increase is negative.

Member Function Documentation

◆ get_offspring_density()

double ReproductionLinear::get_offspring_density ( const int  day_of_year,
const double  body_condition 
) const

Get the amount of offspring for one day in the year.

Parameters
day_of_yearDay of year (0=Jan 1st).
body_conditionFat mass divided by potential maximum fat mass [kg/kg].
Returns
The average number of children a female gives birth to at given day.
Exceptions
std::invalid_argumentIf day_of_year not in [0,364] or body_condition not in [0,1].

Member Data Documentation

◆ breeding_season

const BreedingSeason Fauna::ReproductionLinear::breeding_season
private

◆ max_annual_increase

const double Fauna::ReproductionLinear::max_annual_increase
private

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