#include <population.h>
Public Methods | |
void | reset () |
void | add (double fitness) |
double | minFitness () const |
double | avgFitness () const |
double | maxFitness () const |
void | print (TextOStream &out) const |
Definition at line 118 of file population.h.
|
Adds one fitness measurement.
Definition at line 236 of file population.cc. |
|
Returns the average of fitnesses measured so far.
Definition at line 135 of file population.h. Referenced by Selector::proportionalSelection(), and SimplePopulation::report(). |
|
Returns the highest fitness measured so far.
Definition at line 138 of file population.h. Referenced by SimplePopulation::report(). |
|
Returns the smallest fitness measured so far.
Definition at line 132 of file population.h. Referenced by SimplePopulation::evolve(), and SimplePopulation::report(). |
|
Prints the statistic to the given output stream in a formatted way.
Definition at line 248 of file population.cc. |
|
Initializes the object.
Definition at line 229 of file population.cc. |