Created by Scott Robert Ladd at Coyote Gulch Productions.
#include <scaler.h>
Inheritance diagram for libevocosm::scaler< OrganismType >:
OrganismType | - The type of organism |
virtual libevocosm::scaler< OrganismType >::~scaler | ( | ) | [inline, virtual] |
A virtual destructor. By default, it does nothing; this is a placeholder that identifies this class as a potential base, ensuring that objects of a derived class will have their destructors called if they are destroyed through a base-class pointer.
void libevocosm::scaler< OrganismType >::invert | ( | vector< OrganismType > & | a_population | ) | [inline] |
Scales a population's fitness values
virtual void libevocosm::scaler< OrganismType >::scale_fitness | ( | vector< OrganismType > & | a_population | ) | [pure virtual] |
The scale_fitness method can adjust the fitness of a population to make it more likely that the "best" (whatever that menas) organisms have the best chance of reproduction.
a_population | - A population of organisms |
Implemented in libevocosm::null_scaler< OrganismType >, libevocosm::linear_norm_scaler< OrganismType >, libevocosm::windowed_scaler< OrganismType >, libevocosm::exponential_scaler< OrganismType >, libevocosm::quadratic_scaler< OrganismType >, and libevocosm::sigma_scaler< OrganismType >.
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.