Public Member Functions | Protected Attributes

Tree::TreeCrxSimple Class Reference

Tree genotype: simple tree crossover operator (with default 90% bias toward functional node) Reference: http://dces.essex.ac.uk/staff/rpoli/gp-field-guide/24RecombinationandMutation.html#7_4. More...

#include <TreeCrxSimple.h>

Inheritance diagram for Tree::TreeCrxSimple:
CrossoverOp

List of all members.

Public Member Functions

bool mate (GenotypeP gen1, GenotypeP gen2, GenotypeP child)
bool initialize (StateP)
void registerParameters (StateP)

Protected Attributes

double funcChoiceProb_

Detailed Description

Tree genotype: simple tree crossover operator (with default 90% bias toward functional node) Reference: http://dces.essex.ac.uk/staff/rpoli/gp-field-guide/24RecombinationandMutation.html#7_4.

Definition at line 12 of file TreeCrxSimple.h.


Member Function Documentation

bool TreeCrxSimple::initialize ( StateP   )  [virtual]

Initialize crossover operator. Called before first crossover operation.

Reimplemented from CrossoverOp.

Definition at line 16 of file TreeCrxSimple.cpp.

bool TreeCrxSimple::mate ( GenotypeP  ,
GenotypeP  ,
GenotypeP   
) [virtual]

Performs crossover of two genotype objects. Each genotype object must be initialized!

Implements CrossoverOp.

Definition at line 27 of file TreeCrxSimple.cpp.

void TreeCrxSimple::registerParameters ( StateP   )  [virtual]

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

Reimplemented from CrossoverOp.

Definition at line 9 of file TreeCrxSimple.cpp.


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