Created by Scott Robert Ladd at Coyote Gulch Productions.
Mutates solutions. More...
#include <function_optimizer.h>
Public Member Functions | |
function_mutator (double a_mutation_rate) | |
Creation constructor. More... | |
function_mutator (const function_mutator &a_source) | |
Copy constructor. More... | |
virtual | ~function_mutator () |
Virtual destructor. More... | |
function_mutator & | operator= (const function_mutator &a_source) |
Assignment operator. More... | |
double | mutation_rate () const |
Gets the mutation rate. More... | |
void | mutate (vector< function_solution > &a_population) |
Performs mutations. More... | |
![]() | |
virtual | ~mutator () |
Virtual destructor. More... | |
Additional Inherited Members | |
![]() | |
typedef vector< double > | t_function(vector< double > a_args) |
Definition of a function type. More... | |
![]() | |
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. | |
![]() | |
static evoreal | g_evoreal |
Provides mutation and crossover services for doubles. | |
Implements chance-based mutation of solutions.
|
inline |
Creates a new mutator with a given mutation rate.
|
inline |
Duplicates an existing object.
a_source | - The source object |
|
inlinevirtual |
Satisfies the requirements of the base class; does nothing at this time.
|
virtual |
Mutates a solution using the facilities provided by g_evoreal.
a_population | - Solutions to be mutated |
Implements libevocosm::mutator< function_solution >.
|
inline |
Returns the mutation rate set for this mutator.
|
inline |
Assigns the state of one object to another.
a_source | - The source object |
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.