public final class OnePointCrossover extends Object implements GeneticOperator
One-point crossover is a homologous operation - i.e. the structure of the resulting tree has a similar structure to the trees that were combined to produce it.
| Constructor and Description |
|---|
OnePointCrossover(Random random)
Creates a
OnePointCrossover that uses the given Random to select crossover points. |
| Modifier and Type | Method and Description |
|---|---|
Node |
evolve(NodeSelector selector)
Returns a new
Node evolved from existing instances. |
public OnePointCrossover(Random random)
OnePointCrossover that uses the given Random to select crossover points.public Node evolve(NodeSelector selector)
GeneticOperatorNode evolved from existing instances.evolve in interface GeneticOperatorselector - used to select the existing instances to use as a basis for evolving a new instanceNode evolved from existing instances obtained from selectorOakGP Genetic Programming Framework