Created by Scott Robert Ladd at Coyote Gulch Productions.
A sigma scaler. More...
#include <scaler.h>
Public Member Functions | |
sigma_scaler () | |
Constructor. More... | |
virtual void | scale_fitness (vector< OrganismType > &a_population) |
Scaling function. More... | |
![]() | |
virtual | ~scaler () |
Virtual destructor. More... | |
Additional Inherited Members | |
![]() | |
static size_t | rand_index (size_t n) |
Static function to allow use of g_random function pointer in random_shuffle. | |
static void | set_seed (uint32_t a_seed) |
Set the seed for the random number generator. | |
static uint32_t | get_seed () |
Set the seed for the random number generator. | |
static std::string | version () |
Get version number. | |
![]() | |
static prng | g_random |
A shared random number generator. | |
static std::string | g_version |
Version number. | |
A sigma scaler, as per Forrest and Tanese.
OrganismType | - The type of organism |
|
inline |
Creates a new sigma scaler
|
inlinevirtual |
Performs sigma scaling, which maintains selection pressure over the length of a run, thus minimizing the affects of convergence on reproductive selection. The function adjusts an organism's fitness in relation to the standard deviation of the population's fitness.
a_population | - A population of organisms |
Implements libevocosm::scaler< OrganismType >.
References libevocosm::fitness_stats< OrganismType >::getSigma().
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.