Template Function fwdpp::haplotype_matrix

Function Documentation

template<typename poptype>
data_matrix fwdpp::haplotype_matrix(const poptype &pop, const std::vector<std::size_t> &individuals, const std::vector<std::pair<std::size_t, uint_t>> &neutral_keys, const std::vector<std::pair<std::size_t, uint_t>> &selected_keys)

Calculate a fwdpp::data_matrix representing haplotypes encoded as 0 or 1 copies of the derived mutation.

Return

fwdpp::data_matrix

Parameters
  • pop: The population

  • individuals: The indexes of individuals in pop forming the sample.

  • neutral_keys: See documentation of fwdpp::mutation_keys

  • selected_keys: See documentation of fwdpp::mutation_keys