org.encog.ml.prg.train.rewrite
Class RewriteConstants
java.lang.Object
org.encog.ml.prg.train.rewrite.RewriteConstants
- All Implemented Interfaces:
- RewriteRule
public class RewriteConstants
- extends Object
- implements RewriteRule
Rewrite any parts of the tree that are constant with a simple constant value.
Method Summary |
boolean |
rewrite(Genome g)
Rewrite the specified genome. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RewriteConstants
public RewriteConstants()
rewrite
public boolean rewrite(Genome g)
- Rewrite the specified genome.
- Specified by:
rewrite
in interface RewriteRule
- Parameters:
g
- The genome to rewrite.
- Returns:
- True, if the genome was rewritten.
Copyright © 2014. All Rights Reserved.