|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<FitnessShare.FitnessShareFunction>
geneticWedge.gp.FitnessShare.FitnessShareFunction
public static 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 |
---|
public static final FitnessShare.FitnessShareFunction COUNT
public static final FitnessShare.FitnessShareFunction QUADRATIC
public static final FitnessShare.FitnessShareFunction TRIANGULAR
public static final FitnessShare.FitnessShareFunction SQRT
Method Detail |
---|
public static final FitnessShare.FitnessShareFunction[] values()
for(FitnessShare.FitnessShareFunction c : FitnessShare.FitnessShareFunction.values()) System.out.println(c);
public static FitnessShare.FitnessShareFunction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |