EvolvingObjects
eoBitMutation< Chrom > Class Template Reference

eoBitMutation --> classical mutation More...

#include <ga/eoBitOp.h>

Inheritance diagram for eoBitMutation< Chrom >:
eoMonOp< Chrom > eoOp< Chrom > eoUF< Chrom &, bool > eoFunctorBase unary_function

List of all members.

Public Member Functions

 eoBitMutation (const double &_rate=0.01, bool _normalize=false)
 (Default) Constructor.
virtual std::string className () const
 The class name.
bool operator() (Chrom &chrom)
 Mutate a chromosome.

Private Attributes

double rate
bool normalize

Detailed Description

template<class Chrom>
class eoBitMutation< Chrom >

eoBitMutation --> classical mutation

Definition at line 158 of file eoBitOp.h.


Constructor & Destructor Documentation

template<class Chrom>
eoBitMutation< Chrom >::eoBitMutation ( const double &  _rate = 0.01,
bool  _normalize = false 
) [inline]

(Default) Constructor.

Parameters:
_rateRate of mutation.
_normalizeuse rate/chrom.size if true

Definition at line 166 of file eoBitOp.h.


Member Function Documentation

template<class Chrom>
bool eoBitMutation< Chrom >::operator() ( Chrom &  chrom) [inline, virtual]

Mutate a chromosome.

Parameters:
chromThe chromosome to be mutated.

Implements eoUF< Chrom &, bool >.

Definition at line 176 of file eoBitOp.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends