Mutates solutions.
More...
#include <function_optimizer.h>
Additional Inherited Members |
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 size_t | rand_index (size_t n) |
| Static function to allow use of g_random function pointer in random_shuffle.
|
Detailed Description
Implements chance-based mutation of solutions.
Constructor & Destructor Documentation
libevocosm::function_mutator::function_mutator |
( |
double |
a_mutation_rate | ) |
|
|
inline |
Creates a new mutator with a given mutation rate.
libevocosm::function_mutator::function_mutator |
( |
const function_mutator & |
a_source | ) |
|
|
inline |
Duplicates an existing object.
- Parameters
-
a_source | - The source object |
virtual libevocosm::function_mutator::~function_mutator |
( |
| ) |
|
|
inlinevirtual |
Satisfies the requirements of the base class; does nothing at this time.
Member Function Documentation
void libevocosm::function_mutator::mutate |
( |
vector< function_solution > & |
a_population | ) |
|
|
virtual |
double libevocosm::function_mutator::mutation_rate |
( |
| ) |
const |
|
inline |
Returns the mutation rate set for this mutator.
- Returns
- Mutation rate
Assigns the state of one object to another.
- Parameters
-
a_source | - The source object |
- Returns
- A reference to this
The documentation for this class was generated from the following file: