EvolvingObjects
|
eoDetSingleBitFlip --> changes exactly k bits with checking for duplicate More...
#include <ga/eoBitOp.h>
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 |
eoDetSingleBitFlip --> changes exactly k bits with checking for duplicate
eoDetSingleBitFlip< Chrom >::eoDetSingleBitFlip | ( | const unsigned & | _num_bit = 1 | ) | [inline] |
(Default) Constructor.
_num_bit | The number of bits to change default is one - equivalent to eoOneBitFlip then |
bool eoDetSingleBitFlip< Chrom >::operator() | ( | Chrom & | chrom | ) | [inline, virtual] |
Change num_bit bits.
chrom | The cromosome which one bit is going to be changed. |
Implements eoUF< Chrom &, bool >.
Definition at line 123 of file eoBitOp.h.
References eoRng::random().