#include <GeneticEngine.h>
Public Methods | |
| Mutator (double probability=0.02) | |
| Create a new mutator with the given mutation probability. | |
| virtual void | mutate (util::List< Individual< T > > &population) |
| Make random mutations to a population. | |
| virtual T | mutate (T value) |
| Mutate a single "synthetic base pair". | |
Public Attributes | |
| double | mutationProbability |
| A value in the range [0,1] indicating the probability for a gene to change when mutating a population. | |
|
||||||||||
|
Mutate a single "synthetic base pair". The default implementation returns T(drand48()).
|
|
||||||||||
|
Make random mutations to a population. The default implementation loops through all individuals in a population and randomly mutates some genes in each. |