kernel_param: Compute dispersal kernel parameters

View source: R/kernel_param.R

kernel_paramR Documentation

Compute dispersal kernel parameters

Description

The function computes the constant parameters of a dispersal kernel with a negative exponential distribution

Usage

kernel_param(p, d_disp, mode = "A")

Arguments

p

A numeric value indicating the dispersal probability at a distance equal to 'd_disp' under a negative exponential distribution.

d_disp

A numeric value indicating the distance to which dispersal probability is equal to 'p' under a negative exponential distribution.

mode

A character string indicating the value to return:

  • If 'mode = 'A” (default), the returned value 'alpha' is such that exp(-alpha * d_disp) = p

  • If 'mode = 'B”, the returned value 'alpha' is such that 10(-alpha * d_disp) = p

Details

If the resulting parameter when mode = "A" is a and the resulting parameter when mode = "B" is b, then we have: p = exp(-a.d_disp) = 10^(-b.d_disp) and a = b.ln(10)

Value

A numeric value

Author(s)

P. Savary

Examples

p <- 0.5
d_disp <- 3000
alpha <- kernel_param(p, d_disp, mode = "A")

graph4lg documentation built on Feb. 16, 2023, 5:43 p.m.