Description Usage Arguments Value
Repeates prob.sel for n.individ number of individuals. Completes a single model run.
1 | settle.hab(n.individ, p.mat, hab.mat, A.coef, ...)
|
n.individ |
The number of individuals the model should simulate. Repeats prob.sel this number of times for a single model run. |
p.mat |
The probability matrix passed to prob.sel. Typically the output from convert.cell |
hab.mat |
The matrix containing the "grown" habitats enumerated by the strength of preference (e.g., the output from pref.strength, not convert.cell). |
A.coef |
The habitat preference parameter that matches the hab.mat supplied. This is the "key" that allows the function to interpret each cell of the matrix as either "Habitat A" or "Habitat B". |
... |
Additional arguments as necessary. |
A list, the first element of which is the set of coordinates for the settled location of each individual and the 2nd element of which is the proportion of those indviduals that settled within "Habitat A". If the model is iterated, returns a list of such lists.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.