org.encog.ml.genetic.crossover
Class SpliceNoRepeat
java.lang.Object
org.encog.ml.genetic.crossover.SpliceNoRepeat
- All Implemented Interfaces:
- Crossover
public class SpliceNoRepeat
- extends Object
- implements Crossover
A simple cross over where genes are simply "spliced". Genes are not allowed
to repeat.
|
Constructor Summary |
SpliceNoRepeat(int theCutLength)
Construct a splice crossover. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpliceNoRepeat
public SpliceNoRepeat(int theCutLength)
- Construct a splice crossover.
- Parameters:
theCutLength - The cut length.
mate
public final void mate(Chromosome mother,
Chromosome father,
Chromosome offspring1,
Chromosome offspring2)
- Assuming this chromosome is the "mother" mate with the passed in
"father".
- Specified by:
mate in interface Crossover
- Parameters:
mother - The mother.father - The father.offspring1 - Returns the first offspringoffspring2 - Returns the second offspring.
Copyright © 2012. All Rights Reserved.