ca.quine.jcommons.transform.ga
Class GACorrector
java.lang.Object
|
+--ca.quine.jcommons.transform.ga.GACorrector
- All Implemented Interfaces:
- GAFramework.Corrector
- public class GACorrector
- extends Object
- implements GAFramework.Corrector
Method Summary |
Vector |
repair(Vector fchrom)
Perform the repair algorithm over the current genetic
code and return a feasible chromosome. |
void |
setBias(double bias)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GACorrector
public GACorrector(TransformGraph graph,
TransformNode inputNode,
String[] outputTypes)
repair
public Vector repair(Vector fchrom)
- Description copied from interface:
GAFramework.Corrector
- Perform the repair algorithm over the current genetic
code and return a feasible chromosome.
- Specified by:
repair
in interface GAFramework.Corrector
- Returns:
- a new chromosome.
setBias
public void setBias(double bias)