Learn R Programming

mizer (version 1.0.1)

getESpawning: Get energy rate available for reproduction

Description

Calculates the energy rate available by species and size for reproduction after metabolism and movement have been accounted for: \(\psi_i(w)E_{r.i}(w)\). Used by the project method for performing simulations.

Usage

getESpawning(object, n, n_pp, e)

# S4 method for MizerParams,matrix,numeric,matrix getESpawning(object, n, n_pp, e)

# S4 method for MizerParams,matrix,numeric,missing getESpawning(object, n, n_pp)

Arguments

object

A MizerParams object.

n

A matrix of species abundance (species x size).

n_pp

A vector of the background abundance by size.

e

The energy available for reproduction and growth (optional). A matrix of size no. species x no. size bins. If not supplied, is calculated internally using the getEReproAndGrowth() method.

Value

A two dimensional array (prey species x prey size)

See Also

project and getEReproAndGrowth.

Examples

Run this code
# NOT RUN {
data(NS_species_params_gears)
data(inter)
params <- MizerParams(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 energy at a particular time step
getESpawning(params,sim@n[21,,],sim@n_pp[21,])
# }

Run the code above in your browser using DataLab