public class UniformCrossover extends java.lang.Object implements Crossover
Introduce a new crossover model (uniform crossover), implements Crossover.
Constructor and Description |
---|
UniformCrossover()
Creates an object of the class.
|
Modifier and Type | Method and Description |
---|---|
void |
makeCrossover(Classifier parent1,
Classifier parent2,
Classifier child1,
Classifier child2)
Applies crossover according to the uniform crossover operator.
|
public UniformCrossover()
Creates an object of the class. It does not have to initialize anything.
public void makeCrossover(Classifier parent1, Classifier parent2, Classifier child1, Classifier child2)
Applies crossover according to the uniform crossover operator. It obtains two children.
makeCrossover
in interface Crossover
parent1
- is the first parent.parent2
- is the second parentchild1
- is the first childchild2
- is the second child.