View source: R/find_singularities.R
find_singularities | R Documentation |
Finds trait values for which the selection gradient is zero.
find_singularities(from, to, pars, init, ...)
from, to |
The bounds of the range of trait values to explore |
pars |
An unevaluated parameter-list (e.g. as returned by
|
init |
A vector of two starting values for solving of the demographic equilibrium |
... |
Additional arguments to be passed to |
This function uses a numerical root finding algorithm to find the roots of the fitness gradient within a range of trait values
A vector of singularities (the output of find_roots
)
get_gradient
, find_roots
pars <- get_default_pars()
find_singularities(-1, 1, pars, init = rep(1000, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.