Unlimited learning, half price | 50% off
Get 50% off unlimited learning

mizer (version 2.2.1)

lognormal_pred_kernel: Lognormal predation kernel

Description

This is the most commonly-used predation kernel. The log of the predator/prey mass ratio is normally distributed.

Usage

lognormal_pred_kernel(ppmr, beta, sigma)

Arguments

ppmr

A vector of predator/prey size ratios

beta

The preferred predator/prey size ratio

sigma

The width parameter of the log-normal kernel

Value

A vector giving the value of the predation kernel at each of the predator/prey mass ratios in the ppmr argument.

Details

Writing the predator mass as w and the prey mass as wp, the feeding kernel is given as ϕi(w,wp)=exp[(ln(w/wp/βi))22σi2] if w/wp is larger than 1 and zero otherwise. Here βi is the preferred predator-prey mass ratio and σi determines the width of the kernel. These two parameters need to be given in the species parameter dataframe in the columns beta and sigma.

This function is called from setPredKernel() to set up the predation kernel slots in a MizerParams object.