org.encog.ml.genetic
Class MateWorker
java.lang.Object
org.encog.ml.genetic.MateWorker
- All Implemented Interfaces:
- EngineTask
public class MateWorker
- extends Object
- implements EngineTask
This class is used in conjunction with a thread pool. This allows the genetic
algorithm to offload all of those calculations to a thread pool.
|
Method Summary |
void |
run()
Mate the two chromosomes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MateWorker
public MateWorker(Genome theMother,
Genome theFather,
Genome theChild1,
Genome theChild2)
- Parameters:
theMother - The mother.theFather - The father.theChild1 - The first child.theChild2 - The second child.
run
public final void run()
- Mate the two chromosomes.
- Specified by:
run in interface EngineTask
Copyright © 2012. All Rights Reserved.