1#include "../ECF_base.h" 
    9    myGenotype_->registerParameter(state, 
"crx.uniform", (voidP) 
new double(0), ECF::DOUBLE);
 
   15    voidP sptr = 
myGenotype_->getParameterValue(state, 
"crx.uniform");
 
   27    for (uint dimension = 0; dimension < p1->variables.size(); dimension++) {
 
   28        for(uint i = 0; i < p1->getNumBits(); i++) {
 
   29            if (p1->variables[dimension][i] == p2->variables[dimension][i]) 
 
   30                ch->
variables[dimension][i] = p1->variables[dimension][i];
 
   32                ch->variables[dimension][i] = state_->getRandomizer()->getRandomInteger(2) ? 
true:
false;
 
Binary class - implements genotype as a vector of binary coded real values with variable interval and...
 
std::vector< v_bool > variables
vector of bit vectors
 
double probability_
probability of usage of this crossover operator
 
GenotypeP myGenotype_
pointer to the Genotype that defines this CrossoverOp