dispersal: Generate dispersal kernel functions

dispersalR Documentation

Generate dispersal kernel functions

Description

Generate linear or negative exponential dispersal kernel functions, taking a distance, d, and returning the probability density of dispersing that distance.

Usage

dispersal_linear(dmax)

dispersal_negexp(alpha)

Arguments

dmax

numeric; maximum dispersal distance.

alpha

numeric; exponential decay rate parameter, equal to the inverse of the mean dispersal distance.

Details

The available dispersal kernel functions are:

  • dispersal_linear: decays linearly from 1 and d = 0 to 0 at d = dmax.

  • dispersal_negexp: decays exponentially with rate parameter alpha.

Value

A dispersal kernel function.

Examples

dl <- dispersal_linear(10)
dne <- dispersal_negexp(1/5)
dl(5)
dne(5)

mstrimas/metacapa documentation built on Feb. 22, 2025, 3:23 a.m.