THe call to randomize was forgotten after the choice of a terminal

at max_depth.
This was only visible if
- you implemented the randomize method
- you reached the maximum depth (or used ramped half-and-half).
This commit is contained in:
evomarc 2003-11-26 11:15:59 +00:00
commit f71b436120

View file

@ -133,6 +133,7 @@ class eoParseTreeDepthInit : public eoInit< eoParseTree<FType, Node> >
if (the_max == 1)
{ // generate terminals only
typename std::vector<Node>::iterator it = initializor.begin() + rng.random(last_terminal);
it->randomize();
sequence.push_front(*it);
return;
}