public abstract class TreeCrossover<G extends TreeGene<?,G>,C extends Comparable<? super C>> extends Recombinator<G,C>
crossover(TreeNode, TreeNode) method must be implemented._probabilityDEFAULT_ALTER_PROBABILITY| Modifier | Constructor and Description |
|---|---|
protected |
TreeCrossover(double probability)
Constructs an tree crossover with a given recombination probability.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract <A> int |
crossover(TreeNode<A> that,
TreeNode<A> other)
Template method which performs the crossover.
|
protected int |
recombine(MSeq<Phenotype<G,C>> population,
int[] individuals,
long generation) |
alter, getOrdergetProbabilityprotected TreeCrossover(double probability)
probability - the recombination probabilityIllegalArgumentException - if the probability is not in the
valid range of [0, 1]protected int recombine(MSeq<Phenotype<G,C>> population, int[] individuals, long generation)
recombine in class Recombinator<G extends TreeGene<?,G>,C extends Comparable<? super C>>protected abstract <A> int crossover(TreeNode<A> that, TreeNode<A> other)
A - the existential allele typethat - the first (chromosome) treeother - he second (chromosome) tree© 2007-2019 Franz Wilhelmstötter (2019-11-18 20:30)