public final class HoistMutation extends Object implements GeneticOperator
The resulting offspring will be smaller than the parent.
| Constructor and Description |
|---|
HoistMutation(Random random)
Creates a
HoistMutation that uses the given Random to select subtrees as new offspring. |
| Modifier and Type | Method and Description |
|---|---|
Node |
evolve(NodeSelector selector)
Returns a new
Node evolved from existing instances. |
public HoistMutation(Random random)
HoistMutation that uses the given Random to select subtrees as new offspring.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