interaction_matrix: Interaction matrix

Description Usage Arguments

Description

The function interaction_matrix generates a Lotka-Volterra interaction matrix, following May. For a Caswell matrix, use diag(J), and for a Hubbell matrix, use ones(J).

Usage

1
2
3
interaction_matrix(J, stren = 0.1, con = 1, comp = TRUE)

ones(J)

Arguments

J

size of metacommunity

stren

strength of interaction matrix, which is the standard deviation of the Gaussian from which the values are drawn

con

connectance of the interaction matrix. Defaults to 1 (totally connected)

comp

Logical. Use TRUE for a competition only matrix (all entries are positive); FALSE for otherwise


piLaboratory/GillesCom documentation built on May 25, 2019, 6:04 a.m.