View source: R/set_sampling_freq.R
set_sampling_freq | R Documentation |
Returns an appropriate sampling frequency based on the order of magnitude of
nb_gens
.
set_sampling_freq(nb_gens)
nb_gens |
integer, how many generations should the simulation be run for? |
The sampling frequency is set as follows:
if nb_gens < 1000
, sampling frequency is set to 1
(every generation).
if nb_gens >= 1000
, sampling frequency is set to twice
the order of magnitude of nb_gens
- 2. E.g. for
nb_gens >= 1000
, the community is sampled every 20
generations, every 200 generations for nb_gens >= 10000
,
etc.
Theo Pannetier
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.