public class TwoPointCrossover extends java.lang.Object implements Crossover
This class implements the two-point crossover operator.
Constructor and Description |
---|
TwoPointCrossover()
Creates an object of the class.
|
Modifier and Type | Method and Description |
---|---|
void |
makeCrossover(Classifier parent1,
Classifier parent2,
Classifier child1,
Classifier child2)
Applies crossover.
|
public TwoPointCrossover()
public void makeCrossover(Classifier parent1, Classifier parent2, Classifier child1, Classifier child2)
makeCrossover
in interface Crossover
parent1
- is the first parent.parent2
- is the second parentchild1
- is the first childchild2
- is the second child.