View source: R/get_endpoint_within.R
get_endpoint_within | R Documentation |
Predicts the evolutionary equilibrium reached given a starting point and some parameter values, and if this equilibrium is stable.
get_endpoint_within(
xstart,
pars,
from = xstart - 10,
to = xstart + 10,
step = 1e-04,
...
)
xstart |
The starting resident trait value |
pars |
An unevaluated parameter-list (e.g. as returned by
|
from, to |
Arguments to be passed to |
step |
Argument to be passed to |
... |
Optional extra arguments for |
The function computes the selection gradient at the starting point to know in which direction evolution is leading, then finds the closest singularity in that direction.
A data frame with the singularity, whether it is attainable and whether it is evolutionarily stable. If a singularity is attainable and stable, it is an evolutionarily stable strategy (labelled "ESS"). If it is attainable and unstable, it is a branching point ("BP"). If it is unattainable, it is a repeller.
get_gradient_within
, find_singularities_within
,
is_stable_within
, is_convergent_within
pars <- get_default_pars()
get_endpoint_within(0, pars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.