Template Function fwdpp::generate_breakpoints

Function Documentation

template<typename recombination_policy, typename DiploidType, typename GenomeContainerType, typename MutationContainerType>
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 1

  • g2: Index of haploid_genome 2

  • haploid_genomes: Vector of haploid_genomes

  • mutations: Vector of mutations

  • rec_pol: Function to generate breakpoints