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

Use a constant annual increase rate for herbivore reproduction. More...

#include <reproduction_models.h>

Public Member Functions

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

Private Attributes

const BreedingSeason breeding_season
 
const double annual_increase
 

Detailed Description

Use a constant annual increase rate for herbivore reproduction.

See also
Fauna::ReproductionModel

Constructor & Destructor Documentation

◆ ReproductionConstMax()

ReproductionConstMax::ReproductionConstMax ( BreedingSeason  breeding_season,
const double  annual_increase 
)

Constructor.

Parameters
annual_increaseConstant annual offspring count for one female.
breeding_seasonWhen parturition occurs.
Exceptions
std::invalid_argumentIf annual_increase is negative.

Member Function Documentation

◆ get_offspring_density()

double ReproductionConstMax::get_offspring_density ( const int  day_of_year) const

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

Parameters
day_of_yearDay of year (0=Jan 1st).
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].

Member Data Documentation

◆ annual_increase

const double Fauna::ReproductionConstMax::annual_increase
private

◆ breeding_season

const BreedingSeason Fauna::ReproductionConstMax::breeding_season
private

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