Created by Scott Robert Ladd at Coyote Gulch Productions.
An exponential fitness scaler. More...
#include <scaler.h>
Public Member Functions | |
exponential_scaler (double a_a=1.0, double a_b=1.0, double a_power=2.0) | |
Constructor. | |
virtual void | scale_fitness (vector< OrganismType > &a_population) |
Scaling function. | |
![]() | |
virtual | ~scaler () |
Virtual destructor. |
Implements an exponential fitness scaling, whereby all fitness values are modified such that new fitness = (a * fitness + b) ^ n.
OrganismType | - The type of organism |
|
inline |
Creates a new exponential scaler with a given set of parameters. The formula used is new_fitness = (a * fitness + b) ^ power.
a_a | - A multplier against the fitness |
a_b | - Added to fitness before exponentiation |
a_power | - Power applied to the value |
|
inlinevirtual |
Performs exponential scaling on the fitness of the target population.
a_population | - A population of organisms |
Implements libevocosm::scaler< OrganismType >.
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.