ECF 1.5
Public Member Functions | List of all members
Tree::TreeMutNodeComplement Class Reference

Tree genotype: complement node mutation operator. For the operator to succeed, the chosen primitive must have a defined complement. More...

#include <TreeMutNodeComplement.h>

Inheritance diagram for Tree::TreeMutNodeComplement:
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...
 

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

Tree genotype: complement node mutation operator. For the operator to succeed, the chosen primitive must have a defined complement.

Definition at line 13 of file TreeMutNodeComplement.h.

Member Function Documentation

◆ initialize()

bool Tree::TreeMutNodeComplement::initialize ( StateP  )
virtual

Initialize mutation operator. Called before first mutation operation.

Reimplemented from MutationOp.

Definition at line 16 of file TreeMutNodeComplement.cpp.

◆ mutate()

bool Tree::TreeMutNodeComplement::mutate ( GenotypeP  )
virtual

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

Implements MutationOp.

Definition at line 24 of file TreeMutNodeComplement.cpp.

◆ registerParameters()

void Tree::TreeMutNodeComplement::registerParameters ( StateP  )
virtual

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

Reimplemented from MutationOp.

Definition at line 10 of file TreeMutNodeComplement.cpp.


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