ECF 1.7
Binary::BinaryMutSimple Class Reference

Binary genotype: simple (bit-flip) mutation operator. More...

#include <BinaryMutSimple.h>

Inheritance diagram for Binary::BinaryMutSimple:
MutationOp

Public Member Functions

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

Protected Attributes

double bitProb_
bool bUseBitProb_

Additional Inherited Members

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

Detailed Description

Binary genotype: simple (bit-flip) mutation operator.

Definition at line 12 of file BinaryMutSimple.h.

Member Function Documentation

◆ initialize()

bool BinaryMutSimple::initialize ( StateP state)
virtual

Initialize mutation operator. Called before first mutation operation.

Reimplemented from MutationOp.

Definition at line 15 of file BinaryMutSimple.cpp.

◆ mutate()

bool BinaryMutSimple::mutate ( GenotypeP gene)
virtual

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

Implements MutationOp.

Definition at line 31 of file BinaryMutSimple.cpp.

◆ registerParameters()

void BinaryMutSimple::registerParameters ( StateP state)
virtual

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

Reimplemented from MutationOp.

Definition at line 8 of file BinaryMutSimple.cpp.

Member Data Documentation

◆ bitProb_

double Binary::BinaryMutSimple::bitProb_
protected

Definition at line 15 of file BinaryMutSimple.h.

◆ bUseBitProb_

bool Binary::BinaryMutSimple::bUseBitProb_
protected

Definition at line 16 of file BinaryMutSimple.h.


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