forqs module reference
Forward simulation of Recombination, Quantitative traits, and Selection
 All Classes Groups Pages
FitnessFunction_Optimum Class Reference

Fitness function assigning fitness 1 to optimum trait value, with fitness decaying away from the optimum. More...

The decay can be polynomial:

  • fitness == (1 - abs(trait_value - optimum)/radius)^power

or Gaussian:

  • fitness = exp[ - (trait_value - optimum)^2 / 2*width^2 ]
parameter default notes
quantitative_trait = <id> none required
optimum = <double> none required
radius:power = <double> <double> none optional*
gaussian_width = <double> none optional*

*Exactly one of radius:power or gaussian_width must be specified.

Example: example_stepping_stone.txt

Note: the term 'width' to parametrize Gaussian fitness decay comes from Lande 1976 Evolution (Natural Selection and Random Genetic Drift in Phenotypic Evolution)