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

FloatMutator Class Reference

Interface for FloatGene mutation operators. More...

#include <mutator.h>

Inheritance diagram for FloatMutator:

CircularMutator ConstantMutator MutationMutator MutationSimpleMutator List of all members.

Public Methods

virtual double mutate (double x, double min, double max, double variance) const

Detailed Description

Interface for FloatGene mutation operators.

Definition at line 9 of file mutator.h.


Member Function Documentation

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

Mutates the given current value with the mutation function.

All inheritors should implement this.

Parameters:
x  The current value of the gene.
min  Minimum value of the gene.
max  Maximum value of the gene.
variance  Distribution parameter for the mutation. It can be variance or standard deviation for normally distributed mutations, but it's semantics are really dependent on the actual mutation method.

Reimplemented in ConstantMutator, MutationMutator, MutationSimpleMutator, and CircularMutator.

Definition at line 23 of file mutator.h.

Referenced by FloatGene::pointMutate().


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