Created by Scott Robert Ladd at Coyote Gulch Productions.
Implements a elitism selector. More...
#include <selector.h>
Elitism is one of the simplest type of selection -- it simply says that the n best organisms will survive into the next generation.
OrganismType | - The type of organism |
libevocosm::elitism_selector< OrganismType >::elitism_selector | ( | double | a_factor = 0.9 | ) | [inline] |
Constructs a new elistism_selector with a value that defines the number of organisms that should survive into the next generation.
a_factor | - Percentage of bets fitness required to surivive |
libevocosm::elitism_selector< OrganismType >::elitism_selector | ( | const elitism_selector< OrganismType > & | a_source | ) | [inline] |
Creates a new object identical to an existing one.
a_source | - The source object |
elitism_selector& libevocosm::elitism_selector< OrganismType >::operator= | ( | const elitism_selector< OrganismType > & | a_source | ) | [inline] |
Assigns an existing object the state of another.
a_source | - The source object |
vector< OrganismType > libevocosm::elitism_selector< OrganismType >::select_survivors | ( | vector< OrganismType > & | a_population | ) | [virtual] |
Produces a vector containing copies of the organisms selected for survival.
a_population | - A population of organisms |
Implements libevocosm::selector< OrganismType >.
References libevocosm::fitness_stats< OrganismType >::getBest().
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.