27 uint iGene = state_->getRandomizer()->getRandomInteger(0, chr->
genes - 1);
31 uint iPoint = constOffset + state_->getRandomizer()->getRandomInteger(0, (uint)(chr->
dcLength) - 1);
34 Tree::PrimitiveP oldPrim = chr->at(iPoint)->primitive_;
35 chr->at(iPoint)->primitive_->getValue(&oldValue);
36 std::string oldName = chr->at(iPoint)->primitive_->
getName();
39 std::normal_distribution<double> N(0, 1);
42 double offset = N(engine_);
43 double newValue = oldValue + offset;
50 newName = DBL_PREFIX + newName;
52 oldPrim->setName(newName);
53 oldPrim->setValue(&newValue);
55 std::stringstream log;
56 log <<
"GEPMutGauss successful (oldNode = " << oldName <<
", newNode = " << newName <<
")";
57 ECF_LOG(state_, 5, log.str());