org.dllearner.algorithms.gp
Enum GP.SelectionType

java.lang.Object
  extended by java.lang.Enum<GP.SelectionType>
      extended by org.dllearner.algorithms.gp.GP.SelectionType
All Implemented Interfaces:
Serializable, Comparable<GP.SelectionType>
Enclosing class:
GP

public static enum GP.SelectionType
extends Enum<GP.SelectionType>


Enum Constant Summary
FPS
          FPS (Fitness Proportionate Selection) is a selection type, where the probability of being selected is proportional to the fitness of an individual.
RANK_SELECTION
          Rank selection is a selection type, where the probability of being selected depends only on the order of the fitness of all individuals.
TOURNAMENT_SELECTION
           
 
Method Summary
static GP.SelectionType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GP.SelectionType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RANK_SELECTION

public static final GP.SelectionType RANK_SELECTION
Rank selection is a selection type, where the probability of being selected depends only on the order of the fitness of all individuals.


FPS

public static final GP.SelectionType FPS
FPS (Fitness Proportionate Selection) is a selection type, where the probability of being selected is proportional to the fitness of an individual.


TOURNAMENT_SELECTION

public static final GP.SelectionType TOURNAMENT_SELECTION
Method Detail

values

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

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

valueOf

public static GP.SelectionType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


SourceForge.net Logo DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann