mizerEGrowth: Get energy rate available for growth needed to project...

View source: R/project_methods.R

mizerEGrowthR Documentation

Get energy rate available for growth needed to project standard mizer model

Description

Calculates the energy rate g_i(w) (grams/year) available by species and size for growth after metabolism, movement and reproduction have been accounted for. Used by project() for performing simulations. You would not usually call this function directly but instead use getEGrowth(), which then calls this function unless an alternative function has been registered, see below.

Usage

mizerEGrowth(params, n, n_pp, n_other, t, e_repro, e, ...)

Arguments

params

A MizerParams object

n

A matrix of species abundances (species x size).

n_pp

A vector of the resource abundance by size

n_other

A list of abundances for other dynamical components of the ecosystem

t

The time for which to do the calculation (Not used by standard mizer rate functions but useful for extensions with time-dependent parameters.)

e_repro

The energy available for reproduction as calculated by getERepro().

e

The energy available for reproduction and growth as calculated by getEReproAndGrowth().

...

Unused

Value

A two dimensional array (species x size) with the growth rates.

Your own growth rate function

By default getEGrowth() calls mizerEGrowth(). However you can replace this with your own alternative growth rate function. If your function is called "myEGrowth" then you register it in a MizerParams object params with

params <- setRateFunction(params, "EGrowth", "myEGrowth")

Your function will then be called instead of mizerEGrowth(), with the same arguments.

See Also

Other mizer rate functions: mizerERepro(), mizerEReproAndGrowth(), mizerEncounter(), mizerFMort(), mizerFMortGear(), mizerFeedingLevel(), mizerMort(), mizerPredMort(), mizerPredRate(), mizerRDI(), mizerRates(), mizerResourceMort()


mizer documentation built on Oct. 17, 2024, 9:07 a.m.