get_carrying_cap: Get the carrying capacity for a given trait value

View source: R/get_carrying_cap.R

get_carrying_capR Documentation

Get the carrying capacity for a given trait value

Description

Computes the carrying capacity experienced by an individual.

Usage

get_carrying_cap(
  trait_ind,
  trait_opt = default_trait_opt(),
  carrying_cap_opt = default_carrying_cap_opt(),
  carrying_cap_sd = default_carrying_cap_sd()
)

Arguments

trait_ind

numeric. Trait value z of a focal individual.

trait_opt

numeric. The optimal trait value, z_{opt}. get_carrying_cap(trait_opt) = carrying_cap_opt.

carrying_cap_opt

numeric, value of the carrying capacity at trait_opt

carrying_cap_sd

numeric ⁠>= 0⁠. Parameter \sigma_K of the carrying capacity. Modulates how fast the carrying capacity decays when moving away from the optimal trait value.

Details

the carrying capacity controls the static component of the fitness, one that depends only on an individual's trait and not on the presence/absence of competitors. It defines the fitness landscape before any competitive effect.

Author(s)

Theo Pannetier


TheoPannetier/comrad documentation built on April 8, 2023, 8:06 a.m.