recUnifCrossover: Uniform crossover recombinator.

recUnifCrossoverR Documentation

Uniform crossover recombinator.

Description

Produces two child individuals. The i-th gene is from parent1 with probability p and from parent2 with probability 1-p.

Usage

recUnifCrossover(inds, p = 0.5)

Arguments

inds

[list]
Parents, i.e., list of exactly two numeric or binary vectors of equal length.

p

[numeric(1)]
Probability to select gene from parent1.

Value

[list]

See Also

Other recombinators: recCrossover(), recIntermediate(), recOX(), recPMX(), recSBX()


jakobbossek/ecr2 documentation built on Sept. 23, 2023, 12:33 p.m.