Created by Scott Robert Ladd at Coyote Gulch Productions.
Mutates organisms. More...
#include <mutator.h>
A mutator applies mutations (random, usually small changes) to a set of organisms. Mutation is highly dependent on the type of organism. In traditional genetic algorithms, a mutation flips one or more bits in an integer (i.e., chromosome). Evolving a path for the Traveling Salesman Problem involves complex mutations that maintain valid permutations of destination points.
OrganismType | - The type of organism |
virtual libevocosm::mutator< OrganismType >::~mutator | ( | ) | [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.
virtual void libevocosm::mutator< OrganismType >::mutate | ( | vector< OrganismType > & | a_population | ) | [pure virtual] |
Mutates some (maybe none, maybe all) organisms in a given set.
a_population | - Set of organisms to be mutated |
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.