In file code/C/fitness.H:

class GFitness : public GObject

Holds information about the fitness of the evaluated program

Inheritance:


public members:

int hits
The number of times the program provided an exact solution
double fitness
The fitness score of the program, higher is better
GFitness(int ahits = -1, double afitness = -1.0)
A constructor that takes the initial settings as optional input. If the optional arguments are not provided the values are set to invalid settings to be caught later
void Reset()
Set all of the values back to the initial states
GFitness operator+( GFitness &)
Add two fitness classes by summing all of the values they contain
GFitness & operator+=( GFitness &)
Subract all of the fitness scores in one class from the other
GFitness & operator=( GFitness &)
Copy a fitness class

Inherited from GObject:

public members:

friend ostream& operator<<(ostream& s, GObject &)

Documentation

This class contains the results of the evaluation. The fitness score is used to select which programs to breed next, and the hits are used to show the user of the program how it is proceeding

direct child classes: GProgFit

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling