is_convergent_within: Evaluate within-habitat convergence stability

View source: R/is_convergent_within.R

is_convergent_withinR Documentation

Evaluate within-habitat convergence stability

Description

Assesses whether an equilibrium trait value is convergent-stable, or attainable.

Usage

is_convergent_within(xeq, pars, step = 1e-04)

Arguments

xeq

Some equilibrium trait value

pars

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

step

How far from xeq the selection gradient should be computed

Details

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.

Value

A boolean

See Also

is_stable_within, is_convergent

Examples


pars <- get_default_pars()
is_convergent_within(0, pars)


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