org.encog.ml.prg.train.rewrite
Class RewriteConstants
- java.lang.Object
-
- org.encog.ml.prg.train.rewrite.RewriteConstants
-
- All Implemented Interfaces:
- java.io.Serializable, RewriteRule
public class RewriteConstants extends java.lang.Object implements RewriteRule
Rewrite any parts of the tree that are constant with a simple constant value.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description RewriteConstants()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanrewrite(Genome g)Rewrite the specified genome.
-
-
-
Method Detail
-
rewrite
public boolean rewrite(Genome g)
Rewrite the specified genome.- Specified by:
rewritein interfaceRewriteRule- Parameters:
g- The genome to rewrite.- Returns:
- True, if the genome was rewritten.
-
-
DMelt 3.0 © DataMelt by jWork.ORG