|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.artoflife.gp.genome.SwapSubtreeCrossover
Find a random subtree in chromosome to be replaced with a compatible subtree from the other chromosome if one can be found, else no change.
| Constructor Summary | |
SwapSubtreeCrossover()
|
|
| Method Summary | |
void |
crossover(GpTreeChromosome chromosome1,
GpTreeChromosome chromosome2)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwapSubtreeCrossover()
| Method Detail |
public void crossover(GpTreeChromosome chromosome1,
GpTreeChromosome chromosome2)
crossover in interface GpCrossoverchromosome1 - the GpTreeChromosome to crossover, so this is
changed when the method has returnedchromosome2 - the GpTreeChromosome to crossover with, so
this is not changed when the method has returned
|
artoflife pre0.1.0-dev | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||