set_competition: Utility: set competition coefficients

View source: R/utils.R

set_competitionR Documentation

Utility: set competition coefficients

Description

Utility: set competition coefficients

Usage

set_competition(n_species, int_type, alpha, alpha_scale, inv_sign)

Arguments

n_species

Number of species in a simulated community.

int_type

Generation method for an interaction matrix. Either "constant" or "random". If "random", competition coefficients are randomly generated with an exponential distribution Exp(1/alpha). If "constant", competition coefficients are constant or supplied as a full matrix.

alpha

Competition coefficient. If int_type = "constant", constant or a full matrix . If int_type = "random", alpha represents the expected value of an exponential distribution. Provide a full matrix if int_type = "manual".

alpha_scale

Logical. If TRUE, competition coefficients are scaled by carrying capacity.

inv_sign

Logical. Indicate whether the sign of competition coefficients is multiplied by minus one. If TRUE, values in alpha will become -alpha internally. For example, with a Ricker model, the equation will be x * exp(r - alpha * x) (x * exp(r + alpha * x) if inv_sign = FALSE)


aterui/cdyns documentation built on Nov. 29, 2024, 9:32 a.m.