Template Function fwdpp::haplotype_matrix¶
Defined in File data_matrix.hpp
Function Documentation¶
-
template<typename
poptype>
data_matrixfwdpp::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
- Parameters
pop: The populationindividuals: The indexes of individuals in pop forming the sample.neutral_keys: See documentation of fwdpp::mutation_keysselected_keys: See documentation of fwdpp::mutation_keys