Struct additive_diploid¶
Defined in File fitness_models.hpp
Struct Documentation¶
-
struct
fwdpp::additive_diploid¶ Additive fitness or trait value across sites This function object calculate the genetic value of a diploid according to an additive model with dominance effects per mutation.
The genetic value is calculated via fwdpp::site_dependent_genetic_value.
The genetic value may be treated as a fitness or as a trait value based on arguments passed to the constructor.
Public Types
-
using
result_type= site_dependent_genetic_value::result_type¶
Public Functions
-
additive_diploid(fitness f)¶ Construct an object to calculate fitness values
- Parameters
f: fwdpp::fitness, where the double represents the scaling of the “aa” genotype
-
template<typename
make_return_value_fxn>additive_diploid(fitness f, make_return_value_fxn &&make_rv)¶
-
additive_diploid(trait t)¶ Construct an object to calculate trait/phenotype values
- Parameters
t: fwdpp::trait, where the double represents the scaling of the “aa” genotype
-
template<typename
make_return_value_fxn>additive_diploid(trait t, make_return_value_fxn &&make_rv)¶
-
template<typename
iterator_t, typenameMutationContainerType>
result_typeoperator()(iterator_t first1, iterator_t last1, iterator_t first2, iterator_t last2, const MutationContainerType &mutations) const noexcept¶ Range-based overload.
-
template<typename
HaploidGenomeType, typenameMutationContainerType>
result_typeoperator()(const HaploidGenomeType &g1, const HaploidGenomeType &g2, const MutationContainerType &mutations) const noexcept¶ - Return
Additive genetic value across sites.
- Note
g1 and g2 must be part of the haploid_genome_base hierarchy
- Parameters
g1: A haploid_genomeg2: A haploid_genomemutations: A container of mutations
-
template<typename
DiploidType, typenameGenomeContainerType, typenameMutationContainerType>
result_typeoperator()(const DiploidType &dip, const GenomeContainerType &haploid_genomes, const MutationContainerType &mutations) const noexcept¶ Overload for diploids. This is what a programmer’s functions will call.
-
using