get_n_eff: Compute the effective population size

View source: R/RcppExports.R

get_n_effR Documentation

Compute the effective population size

Description

Computes n_eff, the effective population size experienced by an individual.

Arguments

z

numeric vector, the trait values of all individuals in the community.

competition_sd

numeric ⁠>= 0⁠. Width of the competition kernel.

Details

n_eff sums the competitive effects an individual receives from every individual in the community, including the individual itself. It is called effective population size because it is the size of the population that is relevant for competition.

Author(s)

Thijs Janzen, Théo Pannetier


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