View source: R/relative_fitness.R
relative_fitness | R Documentation |
Calculate relative fitness in the population under directional selection.
relative_fitness(pop)
pop |
A list describing genotypes and positions in a population.
Output of |
relative_fitness
takes lof fitness values from a population generated by
initialise_population
and exponentiates them to calculate relative fitness.
Relative fitness is absolute fitness divided by mean absolute fitness.
If individuals have NA phenotype the fitness is returned as zero.
A vector of relative fitness values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.