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)
.
1 2 3 | interaction_matrix(J, stren = 0.1, con = 1, comp = TRUE)
ones(J)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.