#include <Population.h>
Collaboration diagram for Population< T, siz >:
Public Member Functions | |
Population () | |
Constructor. | |
~Population () | |
Destructor. | |
T * | getNextIndividualWithoutFitness () |
returns the next individual thats fitness was not tested before, or NULL if all individuals have a fitness | |
double | getBestFitness () |
returns fitness of the best individual | |
void | outputStatistics (OutTextRawFile *file=0) |
outputs best fitness, average better half fitness and average fitness of individuals with fitness greater 0 | |
void | evolve (double offspringrate=0.45, double crossormuta=0.4, double mutarate=0.3, double mutastrength=0.2, bool uniformNoise=false) |
does one step in evolution, you can use normal or uniform distributed noise for mutation | |
Public Attributes | |
T * | individual [siz] |
Definition at line 22 of file Population.h.
|
Constructor.
Definition at line 26 of file Population.h. |
|
Destructor.
Definition at line 35 of file Population.h. |
|
returns the next individual thats fitness was not tested before, or NULL if all individuals have a fitness
Definition at line 44 of file Population.h. |
|
returns fitness of the best individual
Definition at line 57 of file Population.h. |
|
outputs best fitness, average better half fitness and average fitness of individuals with fitness greater 0
Definition at line 73 of file Population.h. |
|
does one step in evolution, you can use normal or uniform distributed noise for mutation
Definition at line 128 of file Population.h. |
|
Definition at line 183 of file Population.h. Referenced by operator>>(). |