Description Usage Arguments Examples
Change the selection coefficient, s, to adjust how many copies of that colour are left
1 2 | selection_drifts(colours = 5, trials, size, rel.freq = NULL,
s = 1.04)
|
colours |
number of different colours of balls |
trials |
the number of trials the game runs for |
size |
size of the initial population of balls |
rel.freq |
starting frequencies for the colours. If NULL, frequencies are drawn from the uniform distribution. |
s |
selection coefficient for the first colour |
1 | selection_drifts(colours = 10, trials = 1000, size = 1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.