find_singularities: Find evolutionary singularities

View source: R/find_singularities.R

find_singularitiesR Documentation

Find evolutionary singularities

Description

Finds trait values for which the selection gradient is zero.

Usage

find_singularities(from, to, pars, init, ...)

Arguments

from, to

The bounds of the range of trait values to explore

pars

An unevaluated parameter-list (e.g. as returned by get_default_pars)

init

A vector of two starting values for solving of the demographic equilibrium

...

Additional arguments to be passed to find_roots

Details

This function uses a numerical root finding algorithm to find the roots of the fitness gradient within a range of trait values

Value

A vector of singularities (the output of find_roots)

See Also

get_gradient, find_roots

Examples


pars <- get_default_pars()
find_singularities(-1, 1, pars, init = rep(1000, 2))


rscherrer/speciomx documentation built on March 28, 2023, 8:49 p.m.