Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::ga::FitnessCalculator< T > Class Template Reference

#include <GeneticEngine.h>

List of all members.


Detailed Description

template<class T>
class prapi::ga::FitnessCalculator< T >

FitnessCalculator calculates fitness for each individual in a population.


Public Methods

virtual void calculateFitness (util::List< Individual< T > > &population)=0
 Calculate a fitness value for each individual in a population.


Member Function Documentation

template<class T>
virtual void prapi::ga::FitnessCalculator< T >::calculateFitness util::List< Individual< T > > &    population [pure virtual]
 

Calculate a fitness value for each individual in a population.

There is no default implementation for this method, and subclasses must override it. All old fitness values in each individual must be replaced.


The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.