Template Function fwdpp::genotype_matrix¶
Defined in File data_matrix.hpp
Function Documentation¶
-
template<typename
poptype>
data_matrixfwdpp::genotype_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 genotypes encoded as 0,1, or 2 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