getZ | R Documentation |
Calculates the total mortality \mu_i(w)
on each species by size from
predation mortality (M2), background mortality (M) and fishing mortality for
a single time step.
getZ
method with m2
argument.
getZ(object, n, n_pp, effort, m2)
## S4 method for signature 'therMizerParams,matrix,numeric,numeric,matrix'
getZ(object, n, n_pp,
effort, m2)
object |
A |
n |
A matrix of species abundance (species x size). |
n_pp |
A vector of the background abundance by size. |
effort |
A numeric vector of the effort by gear or a single numeric effort value which is used for all gears. |
m2 |
A two dimensional array of predation mortality (optional). Has
dimensions no. sp x no. size bins in the community. If not supplied is
calculated using the |
ocean_temp |
A numeric vector of ocean temperature by realm or a single numeric ocean_temp value which is used for all realms. |
A two dimensional array (prey species x prey size).
getM2
, getFMort
## Not run:
data(NS_species_params_gears)
data(inter)
params <- therMizerParams(NS_species_params_gears, inter)
# Project with constant fishing effort for all gears for 20 time steps
sim <- project_therMizer(params, t_max = 20, effort = 0.5)
# Get the total mortality at a particular time step
getZ(params,sim@n[21,,],sim@n_pp[21,],effort=0.5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.