R/crossover.R
crossover.Rd
Takes two bit strings and creates a new one of the same size by selecting the items from the first string or the second, based on a given rate (the probability of choosing an element from the first string).
(logical) First parent string.
(logical) Second parent string.
(numeric(1)) A number representing the probability of selecting an element of the first string. Default is 0.5.
numeric(1)
0.5
(crossover).