find_mate_pair: Find a pair of haplotypes.

Description Usage Arguments Value

View source: R/offspring_generation.r

Description

Returns a pair of haplotypes. A first haplotype is uniformly selected, and then a second is sampled with higher probability assigned to similar haplotypes.

Usage

1
find_mate_pair(scores, beta = 1)

Arguments

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.

Value

a vector of length two giving the selected parents.


stephenbates19/digitaltwins documentation built on Feb. 25, 2020, 12:41 a.m.