gpsys
Class GeneFunctionGrow

java.lang.Object
  |
  +--gpsys.Gene
        |
        +--gpsys.GeneFunction
              |
              +--gpsys.GeneFunctionGrow

public class GeneFunctionGrow
extends GeneFunction
implements java.lang.Cloneable

A GeneFunctionGrow is a GeneFunction created using the Grow method. In the Grow method, the Gene tree is such that, along any branch, the probability of encountering a Terminal is equal to the probability of encountering a Function.

Version:
$Revision: 1.1 $, $Date: 2000/07/05 16:21:25 $
Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Serialized Form

Fields inherited from class gpsys.GeneFunction
arguments
 
Fields inherited from class gpsys.Gene
p
 
Constructor Summary
GeneFunctionGrow(int maxDepth, Type type, GPParameters gpParameters, int adfIndex)
          Create a Gene tree using the Grow method.
 
Methods inherited from class gpsys.GeneFunction
complexity, deepClone, depth, evaluateBoolean, evaluateByte, evaluateChar, evaluateDouble, evaluateFloat, evaluateInt, evaluateLong, evaluateObject, evaluateShort, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

GeneFunctionGrow

public GeneFunctionGrow(int maxDepth,
                        Type type,
                        GPParameters gpParameters,
                        int adfIndex)
                 throws TypeException
Create a Gene tree using the Grow method. The Grow method tries to creates trees in which along any branch, the probability of encountering a Terminal is equal to the probability of enountering a Function.
Parameters:
maxDepth - the maximum depth of the Gene tree to be generated.
type - the required return type of top node in the tree.
gpParameters - the GP parameters for this run.
adfIndex - the index of the ChromosomeParameters to used.
Throws:
TypeException - If a Function or Terminal of a required type could not be found.