#include <GenerationalEvolution.h>
Public Member Functions | |
GenerationalIndividual () | |
Constructor. | |
void | reset (void) |
Set fitness and trialCount to 0. | |
void | normalize (void) |
Divide fitness by trialCount. | |
void | load (Ishtar::InputStream *stream) |
Load genome, fitness and trialCount from stream. | |
void | save (Ishtar::OutputStream *stream) |
Save gnome, fitness and trialCount to stream. | |
Public Attributes | |
Genome * | genome |
Genome of this individual. | |
double | fitness |
Fitness gained by this individual. | |
double | trialCount |
Number of trial made by this individual. |