|
abstract void GEP::Core::Common::FitnessFunctions::FitnessFunction::SetFitness |
( |
Genotype |
genotype, |
|
|
bool |
isTest | |
|
) |
| | [pure virtual, inherited] |
Sets the fitness of the given genotype.
- Parameters:
-
| genotype | The genotype, whose fitness will be calculated and set. |
| isTest | Specifies if this is learning or testing. If isTest is true, testing fitness is calculated and Genotype.TestFitness is assigned the calculated value. In the other case learning / teaching cases are considered and Genotype.Fitness is assigned the value |
|