Template Function fwdpp::sample_individuals¶
Defined in File sampling_functions.hpp
Function Documentation¶
-
template<typename
poptype>
data_matrixfwdpp::sample_individuals(const poptype &pop, const std::vector<std::size_t> &individuals, const bool include_neutral, const bool include_selected, const bool remove_fixed)¶ Create a fwdpp::data_matrix for a set of individuals.
- Return
- Note
The return value is a haplotype matrix.
- Parameters
pop: A populationindividuals: indexes of individuals in popinclude_neutral: If true, populate fwdpp::data_matrix::neutralinclude_selected: If true, populate fwdpp::data_matrix::selectedremove_fixed: If true, remove variants that are fixed in the sample.