|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--gpsys.ChromosomeParameters
ChromosomeParameters define information needed to construct a chromosome. Users should extend this class for each ADF to be defined.
gpsys.Chromsome,
GPParameters, Serialized Form| Field Summary | |
static int |
CREATE_FULL
This constant used to initialise the createMethod variable to select the full method of creation. |
static int |
CREATE_GROW
This constant used to initialise the createMethod variable to select the grow method of creation. |
static int |
CREATE_RAMP_HALF_AND_HALF
This constant used to initialise the createMethod variable to select the ramp method of creation. |
int |
createMethod
The method of Chromosome creation, this can be initialised to any of the following constants. |
Function[] |
functions
The table of available functions. |
TypeToFunctionsTable[] |
functionsOfTypeAtDepthFull
Functions of a given return type possible at a given depth for both the FULL creation method. |
TypeToFunctionsTable[] |
functionsOfTypeAtDepthGrow
Functions of a given return type possible at a given depth for both the GROW creation method. |
int |
maxDepth
The maximum depth of the Gene tree. |
int |
maxDepthAtCreation
The maximum depth at creation of the Gene tree. |
int |
maxDepthMutation
The maximum depth of tree created to mutate the Gene tree. |
Terminal[] |
terminals
The table of available terminals. |
TypeToTerminalsTable |
terminalsOfType
A hash table mapping a given Type to an array of terminals of that Type. |
Type |
type
The type to be returned by the Chromosome. |
Type[] |
types
The table of available types. |
| Constructor Summary | |
ChromosomeParameters()
|
|
| Method Summary | |
private void |
initialiseFunctionsTypeTable(int maxDepthAtCreation)
|
private void |
initialiseFunctionsTypeTableFull(int maxDepthAtCreation)
|
private void |
initialiseFunctionsTypeTableGrow(int maxDepthAtCreation)
|
private void |
initialiseTerminalsTypeTable()
|
void |
initialiseTypeTables(int maxDepthAtCreation)
Initialises the type possibilities tables, read the "Strongly Typed Genetic Programing" paper by David J. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public Type type
Typepublic int maxDepth
public int maxDepthAtCreation
public int maxDepthMutation
public Function[] functions
public Terminal[] terminals
public Type[] types
public TypeToFunctionsTable[] functionsOfTypeAtDepthGrow
public TypeToFunctionsTable[] functionsOfTypeAtDepthFull
public TypeToTerminalsTable terminalsOfType
public int createMethod
public static final int CREATE_FULL
public static final int CREATE_GROW
public static final int CREATE_RAMP_HALF_AND_HALF
| Constructor Detail |
public ChromosomeParameters()
| Method Detail |
public void initialiseTypeTables(int maxDepthAtCreation)
maxDepthAtCreation - the maximum depth at creation of the
Gene trees.private void initialiseTerminalsTypeTable()
private void initialiseFunctionsTypeTable(int maxDepthAtCreation)
private void initialiseFunctionsTypeTableFull(int maxDepthAtCreation)
private void initialiseFunctionsTypeTableGrow(int maxDepthAtCreation)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||