#include <mutator.h>
Inheritance diagram for ConstantMutator:
Public Methods | |
ConstantMutator (double var=0.22) | |
virtual double | mutate (double p, double min, double max, double variance) const |
It ignores the variance given in the parameter. This is useful for protecting specific genes from the self-adaptation of mutation rates.
Definition at line 31 of file mutator.h.
|
Standard constructor.
|
|
As in the superclass, except that the variance parameter is not used here; instead the value given in the constructor is used.
Reimplemented from FloatMutator. |