Template Function fwdpp::generate_new_mutations

Function Documentation

template<typename mutation_model, typename diploid_t, typename gcont_t, typename mcont_t>
std::vector<uint_t> fwdpp::generate_new_mutations(flagged_mutation_queue &recycling_bin, const gsl_rng *r, const double &mu, const diploid_t &dip, gcont_t &haploid_genomes, mcont_t &mutations, const std::size_t g, const mutation_model &mmodel)

Return a vector of keys to new mutations. The keys will be sorted according to mutation postition.

Return

Vector of mutation keys, sorted according to position

Parameters
  • recycling_bin: The queue for recycling mutations

  • r: A random number generator

  • mu: The total mutation rate

  • dip: A single-locus diploid

  • haploid_genomes: Vector of haploid_genomes

  • mutations: Vector of mutations

  • g: index of haploid_genome to mutate

  • mmodel: The mutation policy