Calculates the rate at which a predator of a particular species and size consumes biomass of each prey species and resource.
getDiet(
params,
n = initialN(params),
n_pp = initialNResource(params),
n_other = initialNOther(params),
proportion = TRUE
)
A matrix of species abundances (species x size).
A vector of the resource abundance by size
A list of abundances for other dynamical components of the ecosystem
If TRUE (default) the function returns the diet as a proportion of the total consumption rate. If FALSE it returns the consumption rate in grams.
An array (predator species x predator size x (prey species + resource + other components) )
This function performs the same integration as
getEncounter()
but does not aggregate over prey species, and
multiplies by (1-feeding_level) to get the consumed biomass rather than the
available biomass. Outside the range of sizes for a predator species the
returned rate is zero.
Other summary functions:
getBiomass()
,
getGrowthCurves()
,
getN()
,
getSSB()
,
getYieldGear()
,
getYield()