get_viable_z_range: Given K(z), return the min and max values of z viable for a...

View source: R/get_viable_z_range.R

get_viable_z_rangeR Documentation

Given K(z), return the min and max values of z viable for a population of some size

Description

Given K(z), return the min and max values of z viable for a population of some size

Usage

get_viable_z_range(pop_size, trait_opt, carrying_cap_opt, carrying_cap_sd)

Arguments

pop_size

integer, a population size

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 σ_K of the carrying capacity. Modulates how fast the carrying capacity decays when moving away from the optimal trait value.

Value

double, the max value of z that can support a population of size pop_size


TheoPannetier/comsie documentation built on Nov. 21, 2022, 4:35 p.m.