find_singularities_within: Find within-habitat evolutionary singularities

View source: R/find_singularities_within.R

find_singularities_withinR Documentation

Find within-habitat evolutionary singularities

Description

Finds trait values for which the selection gradient is zero.

Usage

find_singularities_within(from, to, pars, ...)

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)

...

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_within, find_roots, find_singularities

Examples


pars <- get_default_pars()
find_singularities_within(-1, 1, pars)


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