geneticWedge.gp
Enum PopulationDescriptor.PopulationGrowMethod

java.lang.Object
  extended by java.lang.Enum<PopulationDescriptor.PopulationGrowMethod>
      extended by geneticWedge.gp.PopulationDescriptor.PopulationGrowMethod
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PopulationDescriptor.PopulationGrowMethod>
Enclosing class:
PopulationDescriptor

public static enum PopulationDescriptor.PopulationGrowMethod
extends java.lang.Enum<PopulationDescriptor.PopulationGrowMethod>

PopulationGrowMethod determines the method used to 'grow' the Individuals within a Population


Enum Constant Summary
FULL
          If the FULL method is used to create trees, Terminals are only used when the maximum tree depth is reached.
GROW
          The GROW method selects Terminals and Functions randomly.
RAMPED_HALF_AND_HALF
          The RAMPED_HALF_AND_HALF method creates a mixture of trees by combining the GROW and FULL methods and by using varying tree depths between the maximum and minimum tree depths.
 
Method Summary
static PopulationDescriptor.PopulationGrowMethod valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PopulationDescriptor.PopulationGrowMethod[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GROW

public static final PopulationDescriptor.PopulationGrowMethod GROW
The GROW method selects Terminals and Functions randomly. This creates uneven trees containing subtrees of different sizes.


FULL

public static final PopulationDescriptor.PopulationGrowMethod FULL
If the FULL method is used to create trees, Terminals are only used when the maximum tree depth is reached. All subtrees therefore have the same depth.


RAMPED_HALF_AND_HALF

public static final PopulationDescriptor.PopulationGrowMethod RAMPED_HALF_AND_HALF
The RAMPED_HALF_AND_HALF method creates a mixture of trees by combining the GROW and FULL methods and by using varying tree depths between the maximum and minimum tree depths.

Method Detail

values

public static final PopulationDescriptor.PopulationGrowMethod[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(PopulationDescriptor.PopulationGrowMethod c : PopulationDescriptor.PopulationGrowMethod.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static PopulationDescriptor.PopulationGrowMethod valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name