resource_params: Resource parameters

View source: R/resource_dynamics.R

resource_paramsR Documentation

Resource parameters

Description

The recommended way to change the resource dynamics parameters is to use setResource(). The resource_params list contains values that are helpful in setting up the actual size-dependent parameters with setResource(). If you have specified a custom resource dynamics function that requires additional parameters, then these should also be added to the resource_params list.

Usage

resource_params(params)

resource_params(params) <- value

Arguments

params

A MizerParams object

value

A named list of resource parameters.

Details

The resource_params list will at least contain the slots kappa, lambda, w_pp_cutoff and n.

The resource parameter n is the exponent for the power-law form for the replenishment rate r_R(w):

r_R(w) = r_R\, w^{n-1}.

The resource parameter lambda (\lambda) is the exponent for the power-law form for the carrying capacity c_R(w) and w_pp_cutoff is its cutoff value:

c_R(w) = c_R w^{-\lambda}

for all w less than w_pp_cutoff and zero for larger sizes.

The resource parameter kappa (\kappa) is slightly different in that it is not a parameter for the resource dynamics. Instead it is a parameter that determined the initial resource abundance when the model was created:

N_R(w) = \kappa\, w^{-\lambda}

for all w less than w_pp_cutoff and zero for larger sizes. Note that the initial resource abundance is not changed by setResource() even if you change the value of kappa in the resource_params.

Value

A named list of resource parameters.

See Also

setResource()


sizespectrum/mizer documentation built on Feb. 1, 2025, 5:10 a.m.