Struct multiplicative_diploid¶
Defined in File fitness_models.hpp
Struct Documentation¶
-
struct
fwdpp::multiplicative_diploid¶ Multiplicative fitness or trait value across sites This function object calculate the genetic value of a diploid according to an multiplicative 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
-
multiplicative_diploid(trait t)¶ Construct an object to calculate trait/phenotype values.
- Parameters
t: fwdpp::trait, where the double repsresents the scaling of “aa” trait values.
-
template<typename
make_return_value_fxn>multiplicative_diploid(fitness f, make_return_value_fxn &&make_rv)¶
-
multiplicative_diploid(fitness gvtype)¶ Construct an object to calculate fitness values.
- Parameters
gvtype: fwdpp::fitness, where the double repsresents the scaling of “aa” trait values.
-
template<typename
make_return_value_fxn>multiplicative_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>
doubleoperator()(const HaploidGenomeType &g1, const HaploidGenomeType &g2, const MutationContainerType &mutations) const noexcept¶ - Return
Multiplicative genetic value across sites.
- Parameters
g1: A haploid_genomeg2: A haploid_genomemutations: 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