Function fwdpp::ts::get_parent_ids¶
Defined in File get_parent_ids.hpp
Function Documentation¶
-
std::pair<table_index_t, table_index_t>
fwdpp::ts::get_parent_ids(const table_index_t first_parental_index, const table_index_t parent, const int did_swap)¶ Convert the index of a parent into the two node IDs.
- Note
This function is trivial in implementation and is easily replaced if a more complex set of rules are needed
- Parameters
first_parental_index: First index of possible parents for offspringparent: Index of parent in the populationdid_swap: This is the “Mendel” step.