sglv | R Documentation |
Spatial generalized Lotka-Volterra model
sglv(
n_species,
n_patch,
n_timestep = 100,
interval = 0.01,
r,
alpha,
dispersal = list(adj = matrix(0, nrow = n_patch, ncol = n_patch), phi = 0, m = 0),
n0 = list(min = 0, max = 1),
threshold = 0,
cpp = TRUE,
...
)
n_species |
Integer. Number of species |
n_patch |
Integer. Number of habitat patches |
n_timestep |
Integer. Number of time step for a simulation run |
interval |
Numeric. Time interval used for a numerical ODE solver |
r |
Numeric. Intrinsic growth rates of modeled species |
alpha |
n_species x n_species interaction matrix |
dispersal |
List. This list must contain the following parameters as named elements: |
n0 |
List. Initial densities for modeled species that are randomly generated by |
threshold |
Numeric. Extinction threshold. Species will be removed from a simulation if species density goes below this value |
cpp |
Logical. If |
... |
Additional arguments passed to |
Akira Terui, hanabi0111@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.