All Packages Class Hierarchy This Package Previous Next Index
Class gpsys.GeneFunctionGrow
java.lang.Object
|
+----gpsys.Gene
|
+----gpsys.GeneFunction
|
+----gpsys.GeneFunctionGrow
- public class GeneFunctionGrow
- extends GeneFunction
- implements 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:
- 1.1, 30th June '97
- Author:
- Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
-
GeneFunctionGrow(int, Type, GPParameters, int)
- Create a Gene tree using the Grow method.
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.
All Packages Class Hierarchy This Package Previous Next Index