11#ifndef FAUNA_OUTPUT_HERBIVORE_DATA_H
12#define FAUNA_OUTPUT_HERBIVORE_DATA_H
94 const double other_weight);
144 const double weight1 = 1.0,
145 const double weight2 = 1.0);
Basic classes encapsulating forage amounts & fractions.
Herbivore Functional Type (HFT) class and its dependents.
Herbivore output data for one time unit.
Definition: herbivore_data.h:22
double age_years
Age in years.
Definition: herbivore_data.h:26
double offspring
Newborns (offspring) per day [ind/km²/day].
Definition: herbivore_data.h:49
double expenditure
Energy expenditure [MJ/ind/day].
Definition: herbivore_data.h:32
Fauna::ForageMass eaten_forage_per_mass
Eaten forage per body mass [kgDM/kg/day].
Definition: herbivore_data.h:55
Fauna::ForageEnergy energy_intake_per_mass
Intake of net energy in forage per herbivore mass [MJ/kg/day].
Definition: herbivore_data.h:67
Fauna::ForageEnergyContent energy_content
Net energy content of available forage [MJ/kgDM].
Definition: herbivore_data.h:61
std::map< Fauna::MortalityFactor, double > mortality
Daily mortality rate [ind/ind/day].
Definition: herbivore_data.h:46
static void merge_energy_content(Fauna::ForageEnergyContent &obj1, const Fauna::ForageEnergyContent &obj2, const double weight1=1.0, const double weight2=1.0)
Build weighted mean for net energy content, not counting zero values.
Definition: herbivore_data.cpp:102
HerbivoreData & merge(const HerbivoreData &other, const double this_weight, const double other_weight)
Aggregate data of this object with another one.
Definition: herbivore_data.cpp:19
double inddens
Individual density [ind/km²].
Definition: herbivore_data.h:40
Fauna::ForageEnergy energy_intake_per_ind
Intake of net energy in forage per individual [MJ/ind/day].
Definition: herbivore_data.h:64
Fauna::ForageMass eaten_forage_per_ind
Eaten forage per individual [kgDM/ind/day].
Definition: herbivore_data.h:52
static HerbivoreData create_datapoint(const std::vector< HerbivoreData > data)
Aggregate herbivore data within one habitat.
Definition: herbivore_data.cpp:113
double bodyfat
Body fat [fraction].
Definition: herbivore_data.h:29
void reset()
Reset all member variables to initial zero values.
Definition: herbivore_data.h:97
double massdens
Mass density [kg/km²].
Definition: herbivore_data.h:43
double eaten_nitrogen_per_ind
Ingested nitrogen mass per individual and day [mgN/ind/day].
Definition: herbivore_data.h:58