View source: R/project_methods.R
| mizerMort | R Documentation |
Calculates the total mortality rate \mu_i(w) (in units 1/year) on each
species by size from predation mortality, background mortality and fishing
mortality.
You would not usually call this
function directly but instead use getMort(), which then calls this
function unless an alternative function has been registered, see below.
mizerMort(params, n, n_pp, n_other, t, f_mort, pred_mort, ...)
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.) |
f_mort |
A two dimensional array (species x size) with the fishing mortality |
pred_mort |
A two dimensional array (species x size) with the predation mortality |
... |
Unused |
If your model contains additional components that you added with
setComponent() and for which you specified a mort_fun function then
the mortality inflicted by these components will be included in the returned
value.
A named two dimensional array (species x size) with the total mortality rates.
By default getMort() calls mizerMort(). However you can
replace this with your own alternative mortality function. If
your function is called "myMort" then you register it in a MizerParams
object params with
params <- setRateFunction(params, "Mort", "myMort")
Your function will then be called instead of mizerMort(), with the
same arguments.
Other mizer rate functions:
mizerEGrowth(),
mizerERepro(),
mizerEReproAndGrowth(),
mizerEncounter(),
mizerFMort(),
mizerFMortGear(),
mizerFeedingLevel(),
mizerPredMort(),
mizerPredRate(),
mizerRDI(),
mizerRates(),
mizerResourceMort()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.