getPhiPrey: Get available energy

View source: R/deprecated.R

getPhiPreyR Documentation

Get available energy

Description

[Deprecated]

This is deprecated and is no longer used by the mizer project() method. Calculates the amount E_{a,i}(w) of food exposed to each predator as a function of predator size.

Usage

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

Arguments

object

An MizerParams 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()

Examples


params <-  NS_params
sim <- project(params, t_max = 20, effort = 0.5)
n <- sim@n[21,,]
n_pp <- sim@n_pp[21,]
getPhiPrey(params,n,n_pp)
# ->
getEncounter(params) / getSearchVolume(params)


sizespectrum/mizer documentation built on March 9, 2024, 3:53 a.m.