getPhiPrey: getPhiPrey method for the size based model

getPhiPreyR Documentation

getPhiPrey method for the size based model

Description

Calculates the amount E_{a,i}(w) of food exposed to each predator by predator size. This method is used by the project_therMizer method for performing simulations.

Usage

getPhiPrey(object, n, n_pp, ...)

## S4 method for signature 'therMizerParams,matrix,numeric'
getPhiPrey(object, n, n_pp, ...)

Arguments

object

An therMizerParams object

n

A matrix of species abundances (species x size)

n_pp

A vector of the background abundance by size

...

Other arguments (currently unused)

Value

A two dimensional array (predator species x predator size)

See Also

project_therMizer

Examples

## Not run: 
data(NS_species_params_gears)
data(inter)
params <- therMizerParams(NS_species_params_gears, inter)
# With constant fishing effort for all gears for 20 time steps
sim <- project_therMizer(params, t_max = 20, effort = 0.5)
n <- sim@n[21,,]
n_pp <- sim@n_pp[21,]
getPhiPrey(params,n,n_pp)

## End(Not run)

pwoodworth-jefcoats/Size-Based-Modeling documentation built on Sept. 15, 2023, 8:13 a.m.