Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

ConstantMutator Class Reference

The standard normally distributed FloatGene mutator. More...

#include <mutator.h>

Inheritance diagram for ConstantMutator:

FloatMutator List of all members.

Public Methods

 ConstantMutator (double var=0.22)
virtual double mutate (double p, double min, double max, double variance) const

Detailed Description

The standard normally distributed FloatGene mutator.

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.


Constructor & Destructor Documentation

ConstantMutator double    var = 0.22 [inline]
 

Standard constructor.

Parameters:
var  Variance. This value is IGNORED! Instead, the variance given as parameter to the mutate () method is used.

Definition at line 39 of file mutator.h.


Member Function Documentation

virtual double mutate double    p,
double    min,
double    max,
double    variance
const [inline, virtual]
 

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.

Definition at line 44 of file mutator.h.


The documentation for this class was generated from the following file:
Generated on Thu Feb 10 20:12:01 2005 for NeHeP by doxygen1.2.18