Returns a pair of haplotypes. A first haplotype is uniformly selected, and then a second is sampled with higher probability assigned to similar haplotypes.
find_mate_pair(scores, beta = 1)
scores: | A vector of the lenght of the parent population. Gives the score for for each parent, such as the inner product with the 1st PC. |
---|
a vector of length two giving the selected parents.