Calculates the rate at which a predator of a particular species and size consumes biomass of each prey species and plankton.

getDiet(
  params,
  n = params@initial_n,
  n_pp = params@initial_n_pp,
  proportion = TRUE
)

Arguments

proportion

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.

Value

An array (predator species x predator size x (prey species + plankton) )

Details

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.

See also

Other summary functions: getBiomass(), getGrowthCurves(), getN(), getSSB(), getYieldGear(), getYield()