geneticWedge.gp
Enum FitnessShare.FitnessShareFunction

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

public static enum FitnessShare.FitnessShareFunction
extends java.lang.Enum<FitnessShare.FitnessShareFunction>

FitnessShareFunction determines the shape of the fitness sharing within a niche. No fitness sharing will occur outside a niche. Sensitivity to the distance (the rate at which the sharing value falls away with distance) increases in the order COUNT, QUADRATIC, TRIANGULAR, SQRT.


Enum Constant Summary
COUNT
          COUNT simply divides the fitness by the number of Individuals within a fixed size niche.
QUADRATIC
          With QUADRATIC sharing, the sharing coefficient falls off as the square of the distance to other Individuals within the niche.
SQRT
          With SQRT sharing, the sharing coefficient falls off as the square root of the distance to other Individuals within the niche.
TRIANGULAR
          With TRIANGULAR sharing, the sharing coefficient falls off linearly with the distance to other Individuals within the niche.
 
Method Summary
static FitnessShare.FitnessShareFunction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FitnessShare.FitnessShareFunction[] 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

COUNT

public static final FitnessShare.FitnessShareFunction COUNT
COUNT simply divides the fitness by the number of Individuals within a fixed size niche.


QUADRATIC

public static final FitnessShare.FitnessShareFunction QUADRATIC
With QUADRATIC sharing, the sharing coefficient falls off as the square of the distance to other Individuals within the niche.


TRIANGULAR

public static final FitnessShare.FitnessShareFunction TRIANGULAR
With TRIANGULAR sharing, the sharing coefficient falls off linearly with the distance to other Individuals within the niche.


SQRT

public static final FitnessShare.FitnessShareFunction SQRT
With SQRT sharing, the sharing coefficient falls off as the square root of the distance to other Individuals within the niche.

Method Detail

values

public static final FitnessShare.FitnessShareFunction[] 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(FitnessShare.FitnessShareFunction c : FitnessShare.FitnessShareFunction.values())
        System.out.println(c);

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

valueOf

public static FitnessShare.FitnessShareFunction 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