ECF 1.7
Cartesian::CartesianCrxUniform Class Reference

Cartesian genotype: uniform crossover operator. More...

#include <CartesianCrxUniform.h>

Inheritance diagram for Cartesian::CartesianCrxUniform:
CrossoverOp CrossoverOp

Public Member Functions

bool mate (GenotypeP gen1, GenotypeP gen2, GenotypeP child)
bool initialize (StateP)
 Initialize crossover operator. Called before first crossover operation.
void registerParameters (StateP)
 Register parameters with the system. Called before CrossoverOp::initialize.
bool mate (GenotypeP gen1, GenotypeP gen2, GenotypeP child)
bool initialize (StateP)
 Initialize crossover operator. Called before first crossover operation.
void registerParameters (StateP)
 Register parameters with the system. Called before CrossoverOp::initialize.

Additional Inherited Members

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

Detailed Description

Cartesian genotype: uniform crossover operator.

Genes are randomly copied from both parents with equal probability

Definition at line 14 of file CartesianCrxUniform.h.

Member Function Documentation

◆ initialize() [1/2]

bool Cartesian::CartesianCrxUniform::initialize ( StateP state)
virtual

Initialize crossover operator. Called before first crossover operation.

Reimplemented from CrossoverOp.

Definition at line 12 of file CartesianCrxUniform.cpp.

◆ initialize() [2/2]

bool Cartesian::CartesianCrxUniform::initialize ( StateP )
virtual

Initialize crossover operator. Called before first crossover operation.

Reimplemented from CrossoverOp.

◆ mate() [1/2]

bool Cartesian::CartesianCrxUniform::mate ( GenotypeP gen1,
GenotypeP gen2,
GenotypeP child )
virtual

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

Implements CrossoverOp.

Definition at line 20 of file CartesianCrxUniform.cpp.

◆ mate() [2/2]

bool Cartesian::CartesianCrxUniform::mate ( GenotypeP gen1,
GenotypeP gen2,
GenotypeP child )
virtual

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

Implements CrossoverOp.

◆ registerParameters() [1/2]

void Cartesian::CartesianCrxUniform::registerParameters ( StateP state)
virtual

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

Reimplemented from CrossoverOp.

Definition at line 6 of file CartesianCrxUniform.cpp.

◆ registerParameters() [2/2]

void Cartesian::CartesianCrxUniform::registerParameters ( StateP )
virtual

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

Reimplemented from CrossoverOp.


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