A predation kernel where the predator/prey mass ratio is uniformly distributed on an interval.

box_pred_kernel(ppmr, ppmr_min, ppmr_max)

## Arguments

ppmr A vector of predator/prey size ratios Minimum predator/prey mass ratio Maximum predator/prey mass ratio

## 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 $$w_p$$, the feeding kernel is 1 if $$w/w_p$$ is between ppmr_min and ppmr_max and zero otherwise. The parameters need to be given in the species parameter dataframe in the columns ppmr_min and ppmr_max.