Template Function fwdpp::generate_breakpoints¶
Defined in File mutate_recombine.hpp
Function Documentation¶
-
template<typename
recombination_policy, typenameDiploidType, typenameGenomeContainerType, typenameMutationContainerType>
std::vector<double>fwdpp::generate_breakpoints(const DiploidType &diploid, const std::size_t g1, const std::size_t g2, const GenomeContainerType &haploid_genomes, const MutationContainerType &mutations, const recombination_policy &rec_pol)¶ Generate vector of recombination breakpoints
- Return
std::vector<double> containing sorted breakpoints
- Note
An empty return value means no breakpoints. Otherwise, the breakpoints are returned and are terminated by std::numeric_limits<double>::max()
- Parameters
diploid: A single-locus diploid.g1: Index of haploid_genome 1g2: Index of haploid_genome 2haploid_genomes: Vector of haploid_genomesmutations: Vector of mutationsrec_pol: Function to generate breakpoints