An alias provided for backward compatibility with mizer version <= 1.0

getZ(
  params,
  n = params@initial_n,
  n_pp = params@initial_n_pp,
  n_other = params@initial_n_other,
  effort = params@initial_effort,
  m2 = getPredMort(params, n = n, n_pp = n_pp, n_other = n_other),
  starv_mort = getStarvMort(params, n = n, n_pp = n_pp, n_other = n_other)
)

Arguments

params

A MizerParams object

n

A matrix of species abundances (species x size).

n_pp

A vector of the plankton abundance by size

n_other

A list of abundances for other dynamical components of the ecosystem

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 getPredMort function.

Value

A two dimensional array (prey species x prey size).

See also

Examples

if (FALSE) { data(NS_species_params_gears) data(inter) params <- newMultispeciesParams(NS_species_params_gears, inter) # Project with constant fishing effort for all gears for 20 time steps sim <- project(params, t_max = 20, effort = 0.5) # Get the total mortality at a particular time step getMort(params,sim@n[21,,],sim@n_pp[21,],effort=0.5) }