public class DOVSFitness extends SimpleFitness
Default Base
dovs.fitness
Modifier and Type | Field and Description |
---|---|
double |
mean
Mean fitness value of the current individual.
|
int |
numOfObservations
Number of evaluation have been performed on this individual.
|
double |
sum
Sum of the all the fitness value with all the evaluation.
|
double |
sumSquared
Sum of the all the squared fitness value with all the evaluation.
|
double |
variance
Variance of the fitness value of the current individual.
|
isIdeal
context, FITNESS_PREAMBLE, P_FITNESS, trials
Constructor and Description |
---|
DOVSFitness() |
Modifier and Type | Method and Description |
---|---|
int |
numOfObservations()
Return the number of simulation have done with current individual.
|
double |
recordObservation(EvolutionState state,
double result)
Record the result of the new simulation.
|
void |
reset()
Reset the fitness to initial status.
|
void |
setup(EvolutionState state,
Parameter base)
Sets up the object by reading it from the parameters stored
in state, built off of the parameter base base.
|
betterThan, defaultBase, equivalentTo, fitness, fitnessToString, fitnessToStringForHumans, isIdealFitness, readFitness, readFitness, setFitness, setFitness, setToMeanOf, writeFitness
clone, compareTo, contextIsBetterThan, getContext, merge, printFitness, printFitness, printFitness, printFitnessForHumans, printFitnessForHumans, readTrials, setContext, setContext, setToBestOf, setToMedianOf, writeTrials
public double sumSquared
public double sum
public double mean
public int numOfObservations
public double variance
public void setup(EvolutionState state, Parameter base)
Prototype
For prototypes, setup(...) is typically called once for the prototype instance; cloned instances do not receive the setup(...) call. setup(...) may be called more than once; the only guarantee is that it will get called at least once on an instance or some "parent" object from which it was ultimately cloned.
public void reset()
public int numOfObservations()
public double recordObservation(EvolutionState state, double result)