crossover: Single Crossover

Description Usage Arguments

View source: R/crossover.R

Description

crossover accomplishes the process that parents crossover with a single split point in their chromosomes. This function returns a vector of 2*C representing the genes of two children.

Usage

1
crossover(parents)

Arguments

parents

a 2 by C matrix of booleans, with each row representing a parent chromosome


garylin2099/GA documentation built on Feb. 8, 2020, 1:13 a.m.