Description Usage Arguments Value References Examples
Simulate Wright-Fisher Process
1 2 |
nspecies |
One way to parameterize WFP by number of species. |
rho |
Compositional vector signifying the mean of the community |
lambda |
Rate of migration or mean-reversion |
X0 |
optional initial community state - must be a compositional vector of same size as rho |
dt |
size of timesteps for numerical integration |
Tmax |
Size of time window of numerical integration |
nsamples |
Number of timepoints between 0 and T to sample. Output will be a matrix with nrow=length(rho) and ncol=nsamples |
method |
Method for simulation, either 'VSM' or 'WFP'. Default is VSM - simulates volatility stabilized market and converts to relative abundances. |
tol |
Tolerance for VSM simulation, i.e. the reflecting lower bound for stock prices to ensure values stay positive. |
Outputs a two-element list. The first element is the time vector for the time of samples, and the second element is the matrix of the fluctuating community.
Washburne, Alex (2015) "Competition and Coexistence in an Unpredictable World". https://www.academia.edu/15517160/PhD_Thesis_-_Competition_and_Coexistence_in_an_Unpredictable_World
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.