org.encog.ml.prg.train.rewrite
Class RewriteConstants

java.lang.Object
  extended by 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.


Constructor Summary
RewriteConstants()
           
 
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
 

Constructor Detail

RewriteConstants

public RewriteConstants()
Method Detail

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.