recombin: RECOMBINation high-level function

Description Usage Arguments Value Note Author(s) Examples

View source: R/recombin.R

Description

This function performs recombination between pairs of individuals and returns the new individuals after mating. The function handles multiple populations and calls the low-level recombination function for the actual recombination process.

Usage

1
recombin(REC_F, Chrom, RecOpt = 0.7, SUBPOP = 1, ...)

Arguments

REC_F

character string containing the name of the recombination or crossover function.

Chrom

a matrix containing the chromosomes of the old population. Each line corresponds to one individual

RecOpt

an optional value containing the probability of recombination/crossover occurring between pairs of individuals. Default is set to 0.7.

SUBPOP

an optional number indicating subpopulations. Default is set to 1.

...

ohter aurguments passed on to crossover function.

Value

a matrix containing the chromosomes of the population after recombination in the same format as OldChrom.

Note

This function doesn't work with low level recombination function recmut

Author(s)

The original matlab implementation of recombin was written by Hartmut Pohlheim. The R implementation was written by David Zhao.

Examples

1
2
3
Selch = crtbp(40,10)$Chrom

NewChrom = recombin(REC_F="xovsp",Chrom=Selch)

drizztxx/gatbxr documentation built on Dec. 27, 2021, 2:26 a.m.