compute_hierarchical_compet.Rd
Outputs a matrix of additional growth per patch per species given by hierarchical competition. The values are considered
compute_hierarchical_compet(
composition_given_time_step,
trait_values,
trait_weights,
H,
exponent = 1
)
composition matrix at a given time step (a site-species matrix with sites in rows)
a trait matrix
data.frame with at least three columns equal to trait
(giving the name of the concerned traits in traits
df), growth_weight
the relative weight of the trait in
growth and compet_weight
the relative weight of the
trait in competition.
the hierarchical competition scalar
exponent to use for hierarchical compet. distances