Template Function fwdpp::generate_new_mutations

Function Documentation

template<typename mutation_model, typename DiploidType, typename GenomeContainerType, typename MutationContainerType>
std::vector<uint_t> fwdpp::generate_new_mutations(flagged_mutation_queue &recycling_bin, const gsl_rng *r, const double &mu, const DiploidType &dip, GenomeContainerType &haploid_genomes, MutationContainerType &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