|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--ec.simple.SimpleFitness
|
+--ec.coevolve.IncrementalAveragedFitness
IncrementalAveragedFitness is a SimpleFitness which adheres to the IncrementalFitness protocol, then bases its fitness value on the average results of each of the updateFitness() methods received.
| Field Summary |
| Fields inherited from class ec.simple.SimpleFitness |
fitness, FITNESS_PREAMBLE, isIdeal, P_FITNESS |
| Constructor Summary | |
IncrementalAveragedFitness()
|
|
| Method Summary | |
void |
postprocessFitness()
A function to be called for finalizing the calculation of the fitness. |
void |
preprocessFitness()
A function to be called before the repeated fitness assessment starts. |
void |
updateFitness(float newFitness)
Update the cumulative fitness of the individual |
| Methods inherited from class ec.simple.SimpleFitness |
betterThan, defaultBase, equivalentTo, fitness, isIdealFitness, printFitness, printFitness, printFitnessForHumans, protoClone, protoCloneSimple, readFitness, setFitness, setFitness, setup |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IncrementalAveragedFitness()
| Method Detail |
public void preprocessFitness()
preprocessFitness in interface IncrementalFitnesspublic void postprocessFitness()
postprocessFitness in interface IncrementalFitnesspublic void updateFitness(float newFitness)
updateFitness in interface IncrementalFitness
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||