|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mss.ea.core.GeneticOperator | +--mss.ea.eval.FitnessScaling | +--mss.ea.eval.LinearScaling
Linear fitness scaling. The scaling is calculated based on the formula fitness(i) = a * score(i) + b. The operator works with all scores, which return a Number as a score value.
Field Summary | |
protected float |
a
Parameter for scaling function. |
protected float |
b
Parameter for scaling function. |
Fields inherited from class mss.ea.core.GeneticOperator |
description, ID, name |
Constructor Summary | |
LinearScaling(float a,
float b)
Constructor. |
Method Summary | |
Fitness |
evaluate(Individual ind)
Evaluation. |
Methods inherited from class mss.ea.eval.FitnessScaling |
process |
Methods inherited from class mss.ea.core.GeneticOperator |
getDescription, getID, getName, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface mss.ea.core.StreamProcessor |
getName |
Field Detail |
protected float a
protected float b
Constructor Detail |
public LinearScaling(float a, float b)
a
- scaling parameter ab
- scaling parameter bMethod Detail |
public Fitness evaluate(Individual ind) throws FitnessScalingException
evaluate
in class FitnessScaling
ind
- individual to calculate the fitness forFitnessScalingException
- thrown in case of incompatible score
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |