View source: R/find_equilibrium.R
find_equilibrium | R Documentation |
Solves the demographic equilibrium equation for the population sizes in the two habitats
find_equilibrium(xres, pars, init)
xres |
The resident 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 |
This function uses a multivariate numerical root finding algorithm
(?pracma::fsolve
) to find solutions to the equation.
A vector of two equilibrium population sizes, one for each habitat.
pars <- get_default_pars()
find_equilibrium(0, pars, init = rep(1000, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.