Description Usage Arguments Value
View source: R/landscape_gen.R
Function to generate a random carrying capacity landscape obeying certain constraints. It distributes peaks uniformly within an N-ball, which is approximated by the overall Super-gaussian multiplier distribution. Peak heights and widths are chosen to satisfy a particular ration and to add up to the total desired niche 'volume'.
1 2 3 | generate_landscape(potent_vol = 1, total_vol = 1, num_peaks = 6,
h_to_sig_ratio = 2, P_min_max = c(0.9, 1.1), dirichlet_param = 1.5,
d = 2, P = 8, a_prop = 0.01)
|
potent_vol |
Total potential volume of the entire landscape. |
total_vol |
Total approximate volume of the entire landscape. |
num_peaks |
Number of fitness peaks to place on the landscape. |
h_to_sig_ratio |
Ratio of the height of each peak to its width (or sigma value). |
P_min_max |
Vector of length 2 giving the minimum and maximum peak super-gaussian parameters to use. |
dirichlet_param |
The alpha parameter of the dircihlet distribution for determining how the volume should be split between the peaks. |
d |
The number of dimensions of the landscape |
P |
Super-gaussian parameter for whole landscape multiplier |
a_prop |
Minimum carrying capacity within the landscape as a proportion of the maximum height |
List of parameter values that can be used in the carrying capacity function to generate the landscape
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.