|
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.stat.StatTracker | +--mss.ea.stat.FitnessTracker
Gathers information about the current state of a population.
Fields inherited from class mss.ea.stat.StatTracker |
header, headerFlag, pop, separator, singleBuffer, trackBuffer, writer |
Constructor Summary | |
FitnessTracker(AbstractPopulation pop)
Constructor. |
|
FitnessTracker(AbstractPopulation pop,
java.io.OutputStream stream)
Constructor with output file to send stream to. |
|
FitnessTracker(AbstractPopulation pop,
java.io.PrintWriter writer)
Constructor with output stream. |
Method Summary | |
double |
average()
Calculates the average fitness of all individual of a popultion. |
double |
best()
Calculates the best fitness value. |
void |
gather()
|
protected void |
setup()
|
double |
standardDeviation()
|
double |
total()
Calculates the sum of all fitness values of all individuals. |
double |
variance()
|
double |
worst()
Calculates the worst fitness value. |
Methods inherited from class mss.ea.stat.StatTracker |
clearBuffer, flushBuffer, getPopulation, setHeader, setPopulation, setSeparator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FitnessTracker(AbstractPopulation pop)
pop
- population to gather information frompublic FitnessTracker(AbstractPopulation pop, java.io.PrintWriter writer)
pop
- population to gather information fromstream
- output streampublic FitnessTracker(AbstractPopulation pop, java.io.OutputStream stream)
pop
- population to gather information fromfilename
- output fileMethod Detail |
protected void setup()
public void gather()
gather
in class StatTracker
public double best()
public double average()
public double worst()
public double total()
public double variance()
public double standardDeviation()
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |