Construct a fitness landscape.

fitness_landscape(
  trait_matrix,
  p,
  hyperpar = param_hyperpar(p),
  raw_seed_rain = FALSE
)

Arguments

trait_matrix

A matrix of traits corresponding to mutants to introduce into the light environment constructed by the residents in p.

p

Parameters object. Needs to contain residents with their incoming seed rain.

raw_seed_rain

Logical; if TRUE report per capita seed rain rather than fitness.

Value

Vector with the output seed rain. Mutants have an arbitrary seed rain of one, so this is the rate of seed production per capita.

Author

Rich FitzJohn