Description Usage Arguments Value
View source: R/trait_pop_sim.R
Carrying capacity function written in R, mostly for visualization or testing purposes.
Returns the value of the carrying capacity landscape at coordinate xi
.
1 2 3 4 |
xi |
X values to evaluate under carrying capacity function; a vector of length d, where d is the number of dimensions of the landscape |
h0 |
Total maximum height of the carrying capacity landscape |
sig0i |
Total width of landscape in all dimensions; determines how far from zero the carrying capacity drops off to nearly zero; vector of length d |
P0i |
Total super-gaussian parameter; determines how quickly or gradually the carrying capacity drops off near the landscape borders in each dimension. Higher values give more extreme drop-offs; vector of length d |
hz |
Maximum height of each of u peaks in the landscape; vector of length u |
biz |
Centre of each of u peaks in the landscape for each of d dimensions; matrix of dimension d by u |
sigiz |
Width of each of u peaks for each of d dimensions; matrix of length d by u |
Piz |
Super-gaussian parameter for each of u peaks for each of d dimensions; matrix of dimension d by u |
a |
Minimum values of carrying capacity within landscape limits |
Value of carrying capacity at coordinates xi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.