Created by Scott Robert Ladd at Coyote Gulch Productions.
A windowed fitness scaler. More...
#include <scaler.h>
Public Member Functions | |
windowed_scaler () | |
Constructor. | |
virtual void | scale_fitness (vector< OrganismType > &a_population) |
Scaling function. | |
![]() | |
virtual | ~scaler () |
Virtual destructor. |
Implements windowed fitness scaling, whereby all fitness values are modified by subtracting the minimum fitness in the population.
OrganismType | - The type of organism |
|
inline |
Creates a new windowed scaler with a given set of parameters.
|
inlinevirtual |
Performs windowed scaling on the fitness of the target population.
a_population | - A population of organisms |
Implements libevocosm::scaler< OrganismType >.
References libevocosm::fitness_stats< OrganismType >::getMin().
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.