View source: R/project_methods.R
mizerEGrowth | R Documentation |
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.
mizerEGrowth(params, n, n_pp, n_other, t, e_repro, e, ...)
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
|
e |
The energy available for reproduction and growth as calculated by
|
... |
Unused |
A two dimensional array (species x size) with the growth rates.
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.
Other mizer rate functions:
mizerERepro()
,
mizerEReproAndGrowth()
,
mizerEncounter()
,
mizerFMort()
,
mizerFMortGear()
,
mizerFeedingLevel()
,
mizerMort()
,
mizerPredMort()
,
mizerPredRate()
,
mizerRDI()
,
mizerRates()
,
mizerResourceMort()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.