Template Function fwdpp::infsites_mutation¶
Defined in File mutation.hpp
Function Documentation¶
-
template<typename
MutationContainerType, typenamelookup_table_t, typenameposition_function, typenameeffect_size_function, typenamedominance_function>
std::size_tfwdpp::infsites_mutation(flagged_mutation_queue &recycling_bin, MutationContainerType &mutations, const gsl_rng *r, lookup_table_t &lookup, const uint_t &generation, const double pselected, const position_function &posmaker, const effect_size_function &esize_maker, const dominance_function &hmaker, const decltype(mutation::xtra) x = 0)¶ Mutation function to add a fwdpp::mutation to a population.
In order to use this function, it must be bound to a callable that is a valid mutation function. See examples for details.
- Note
”Neutral” mutations get assigned a dominance of zero. The xtra field is not written to.
- Version
0.6.0 Added to library
- Parameters
recycling_bin: Recycling queue for mutations (fwdpp::flagged_mutation_queue).mutations: Container of mutationsr: A random-number generatorlookup: Lookup table for mutation positionsgeneration: The generation that is being mutatedpselected: The probability that a new mutation affects fitnessposmaker: A function generating a mutation position. Must be convertible to std::function<double()>.esize_maker: A function to generate an effect size, given that a mutation affects fitness. Must be convertible to std::function<double()>.hmaker: A function to generate a dominance value, given that a mutation affects fitness. Must be convertible to std::function<double()>.x: Value to pass as mutation::xtra