ECF 1.5
Public Member Functions | Protected Attributes | List of all members
BitString::BitStringMutSimple Class Reference

BitString genotype simple (one bit) mutation operator. More...

#include <BitStringMutSimple.h>

Inheritance diagram for BitString::BitStringMutSimple:
MutationOp

Public Member Functions

bool mutate (GenotypeP gene)
 Performs mutation of a genotype object. The genotype object must be initialized! More...
 
bool initialize (StateP)
 Initialize mutation operator. Called before first mutation operation. More...
 
void registerParameters (StateP)
 Register parameters with the system. Called before MutationOp::initialize. More...
 
virtual bool mutate (GenotypeP)=0
 Performs mutation of a genotype object. The genotype object must be initialized! More...
 
virtual bool initialize (StateP)
 Initialize mutation operator. Called before first mutation operation. More...
 
virtual void registerParameters (StateP)
 Register parameters with the system. Called before MutationOp::initialize. More...
 

Protected Attributes

double bitProb_
 probability of single bit mutation More...
 
bool bUseBitProb_
 are we using bit mutation probabiltiy (instead of individual probability) More...
 

Additional Inherited Members

- Public Attributes inherited from MutationOp
StateP state_
 
double probability_
 probability of usage of this mutation operator More...
 
GenotypeP myGenotype_
 pointer to the Genotype that defines this MutationOp More...
 

Detailed Description

BitString genotype simple (one bit) mutation operator.

Definition at line 12 of file BitStringMutSimple.h.

Member Function Documentation

◆ initialize()

bool BitString::BitStringMutSimple::initialize ( StateP  )
virtual

Initialize mutation operator. Called before first mutation operation.

Reimplemented from MutationOp.

Definition at line 14 of file BitStringMutSimple.cpp.

◆ mutate()

bool BitString::BitStringMutSimple::mutate ( GenotypeP  )
virtual

Performs mutation of a genotype object. The genotype object must be initialized!

Implements MutationOp.

Definition at line 30 of file BitStringMutSimple.cpp.

◆ registerParameters()

void BitString::BitStringMutSimple::registerParameters ( StateP  )
virtual

Register parameters with the system. Called before MutationOp::initialize.

Reimplemented from MutationOp.

Definition at line 7 of file BitStringMutSimple.cpp.

Member Data Documentation

◆ bitProb_

double BitString::BitStringMutSimple::bitProb_
protected

probability of single bit mutation

Definition at line 15 of file BitStringMutSimple.h.

◆ bUseBitProb_

bool BitString::BitStringMutSimple::bUseBitProb_
protected

are we using bit mutation probabiltiy (instead of individual probability)

Definition at line 16 of file BitStringMutSimple.h.


The documentation for this class was generated from the following files: