Created by Scott Robert Ladd at Coyote Gulch Productions.
A do-nothing selector. More...
#include <selector.h>
Public Member Functions | |
virtual vector< OrganismType > | select_survivors (vector< OrganismType > &a_population) |
![]() | |
virtual | ~selector () |
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. | |
The null_selector doesn't select anything; it's just a placeholder used in evolutionary algorithms that do not use survival.
OrganismType | - The type of organism |
|
inlinevirtual |
Has no effect on the target population.
a_population | - A population of organisms |
Implements libevocosm::selector< OrganismType >.
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.