multiplecrossover: Performs a Genetic Cross with multiple translocation...

Description Usage Arguments Author(s) See Also Examples

View source: R/evolve.R

Description

Multiplecrossover function performs a genetic cross with multiple translocation positions. For two vectors or matrix, it randomly chooses more than one points and switch every other piece of the segments. Multiplecrossover function will return a 2*p matrix. The default value of number of locations is 2.

Usage

1
multiplecrossover(parents, num.cross.locations = 2)

Arguments

parents

matrix of dimension 2 * p

num.cross.locations

number of locations where crossover happens, defalut value is two

Author(s)

Qi Chen

See Also

singlecrossover

Examples

1
2
data <- rbind(c(1,0,1,0,1,1,1), c(0,0,1,1,1,1,0))
multiplecrossover(data, 3)

dchen49/GA documentation built on May 3, 2019, 6:43 p.m.