ce_funs: Colonisation and extinction functions

ce_funsR Documentation

Colonisation and extinction functions

Description

Colonisation and extinction functions

Usage

ce_linear(parm)

ce_constant(scale, nr)

ce_gaussian(location, breadth, scale)

Arguments

scale

Height of the col/ext function

nr

Number of resource dimensions

location

Location optimum for functions with an optimum

breadth

Breadth of the function (e.g., standard deviation or vcv matrix for gaussian)

x

Niche axis matrix; input for c/e functions; one row per site, one column per axis

Details

Colonisation/extinction functions take a number of forms. Each form has its own set of parameters that are provided when the function is created (e.g., when creating a species). These functions represent the niche of a species, so the parameters are fixed.

Note that these functions expect an input matrix in terms of niche axes not resources. If (e.g. for ratio niches) transformations are used, they must be applied before calling these functions. For a higher-level function that accepts resource state as input, see f_niche().

Value

For c/e functions, a vector of colonisation/extinction rates with length == nrow(x) For all others, a c/e function of the desired form

Examples

fun = ce_linear(parm=list(a=0, b = 1))
R = seq(0,1,0.1)
fun(R)

flee-group/flume documentation built on Jan. 29, 2024, 6:44 p.m.