EvolvingObjects
eoDetSingleBitFlip< Chrom > Class Template Reference

eoDetSingleBitFlip --> changes exactly k bits with checking for duplicate More...

#include <ga/eoBitOp.h>

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

List of all members.

Public Member Functions

 eoDetSingleBitFlip (const unsigned &_num_bit=1)
 (Default) Constructor.
virtual std::string className () const
 The class name.
bool operator() (Chrom &chrom)
 Change num_bit bits.

Private Attributes

unsigned num_bit

Detailed Description

template<class Chrom>
class eoDetSingleBitFlip< Chrom >

eoDetSingleBitFlip --> changes exactly k bits with checking for duplicate

Definition at line 106 of file eoBitOp.h.


Constructor & Destructor Documentation

template<class Chrom >
eoDetSingleBitFlip< Chrom >::eoDetSingleBitFlip ( const unsigned &  _num_bit = 1) [inline]

(Default) Constructor.

Parameters:
_num_bitThe number of bits to change default is one - equivalent to eoOneBitFlip then

Definition at line 114 of file eoBitOp.h.


Member Function Documentation

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

Change num_bit bits.

Parameters:
chromThe cromosome which one bit is going to be changed.

Implements eoUF< Chrom &, bool >.

Definition at line 123 of file eoBitOp.h.

References eoRng::random().


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