Created by Scott Robert Ladd at Coyote Gulch Productions.
#include <scaler.h>
Inheritance diagram for libevocosm::exponential_scaler< OrganismType >:
OrganismType | - The type of organism |
libevocosm::exponential_scaler< OrganismType >::exponential_scaler | ( | double | a_a = 1.0 , |
|
double | a_b = 1.0 , |
|||
double | a_power = 2.0 | |||
) | [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 |
virtual void libevocosm::exponential_scaler< OrganismType >::scale_fitness | ( | vector< OrganismType > & | a_population | ) | [inline, virtual] |
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.