suitability: Prey suitability

Description Usage Arguments Value

View source: R/function.R

Description

The suitability function for predation used in the R model is:

S_{pred,prey}(L,l) = \frac{delta}{1+e^{-alpha-beta l-gamma L}}

With one predator, one prey and otherfood the equation becomes:

C_{L,l}=N_{L}M_{L}Ψ_{L}\frac{F_{L,l}}{∑_lF_{L,l}+OA}

=N_{L}M_{L}\frac{F_{L,l}}{∑_lF_{L,l}+OA+HA}

where $O$ is the density of otherfood.

Usage

1
2
suitability(params, l, L = c(0), type = "exponential",
  to.data.frame = FALSE, normalize = FALSE)

Arguments

l

prey length group(s)

L

predator length group(s)

salpha

alpha for the suitability function.

sbeta

beta for the suitability function.

sgamma

gamma for the suitability function.

sdelta

delta for the suitability function.

Value

matrix of suitabilities, columns prey length, lines predator length


bthe/rgadget documentation built on Oct. 21, 2018, 5:16 p.m.