Created by Scott Robert Ladd at Coyote Gulch Productions.
#include <fsm_tools.h>
The default values were chosen based on my past experience. You can define your own mutation_selector with different weights, and pass it to simple_fsm::mutate.
libevocosm::fsm_tools::mutation_selector::mutation_selector | ( | ) | [inline] |
Constructs a new mutation_selector with the default weights for the roulette wheel.
libevocosm::fsm_tools::mutation_selector::mutation_selector | ( | const mutation_selector & | a_source | ) | [inline] |
Creates a copy of an existing object.
a_source | - The source object to be copied |
libevocosm::fsm_tools::mutation_selector::~mutation_selector | ( | ) | [inline] |
Destroys a mutation selector, freeing resources.
mutation_selector& libevocosm::fsm_tools::mutation_selector::operator= | ( | const mutation_selector & | a_source | ) | [inline] |
Assigns the state of one mutation selector to another.
a_source | - The source object |
void libevocosm::fsm_tools::mutation_selector::set_weight | ( | mutation_id | a_type, | |
double & | a_new_weight | |||
) | [inline] |
Changes a specific mutation weight to a new value.
a_type | - Identifies the specific mutation weight to be set | |
a_new_weight | - New weight to be assigned |
References libevocosm::roulette_wheel::set_weight().
Referenced by libevocosm::simple_fsm< InSize, OutSize >::set_mutation_weight(), and libevocosm::fuzzy_machine< InSize, OutSize >::set_mutation_weight().
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.