Takes two haplotypes of equal length and create an offspring haplotype via recombination.
generate_offspring(x1, x2, z = NULL, d = NULL, lambda = 0.012, epsilon = 1e-08)
| x1 | One parental haplotype, a vector of length p with each entry 0 or 1. |
|---|---|
| x2 | A second parental haplotype, a vector of length p with each entry 0 or 1. |
| d | vector of genetic distances between sites. Should be the same length as x1. |
| lambda | recombination rate per unit of genetic distance |
| epsilon | de novo mutation rate |
Offspring haplotype. A vector of length equal to x1 with each entry 0 or 1.