View source: R/is_convergent.R
is_convergent | R Documentation |
Assesses whether an equilibrium trait value is convergent-stable, or attainable.
is_convergent(xeq, pars, init, step = 1e-04)
xeq |
Some equilibrium trait value |
pars |
An unevaluated parameter-list (e.g. as returned by
|
init |
A vector of two starting values for solving of the demographic equilibrium |
step |
How far from |
This functions computes the selection gradient on both sides of the
equilibrium xeq
and looks at the sign of the difference between the
two. If the selection gradient goes down at xeq
the equilibrium is
convergent, otherwise it is divergent.
A boolean
is_stable
pars <- get_default_pars()
is_convergent(0, pars, init = rep(1000, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.