Description Usage Arguments Value Author(s)
Build a function that steps the system through one generation. Order of events is: (1) resolve fitness (2) introduce mutants.
make_step_equilibrium
does a very simple minded attempt to
converge on the equilibrium of a system by running it for a long
time. It advances the system by dt
(should be a largeish
number) a number of times until the population size stabilises.
This could be replaced by a multidimensional root finding
approach.
1 2 3 4 5 6 7 8 9 | make_step(fitness, mutation, dt, mu, y_initial)
make_step_continuous(fitness, mutation, dt, mu, y_initial, ...)
make_step_deterministic(fitness, ...)
make_step_equilibrium(fitness, ..., method)
make_step_mutation_limited(step_equilibrium, mutation, mu, y_initial)
|
fitness |
Function for computing fitness. Must take
arguments |
mutation |
Function for generating mutants. Must take
arguments |
dt |
Size of the time step |
mu |
Mutation rate. On average there will be |
y_initial |
Abundance at which to introduce new mutants. |
method |
method to find equilibrium. Must be one of "runsteady" or "nleqslv" (or a contraction). |
... |
Additional arguments passed through to
either |
step_equilibrium |
Function generated by
|
A Function that moves the system forward in time; it takes
a list with elements x
(traits), y
(abundances) and
t
(time) and returns a list with these updated to the next
steps.
Rich FitzJohn
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.