Corrected a but in eoUniformMutation (only the first component ever got modified!

Thanks to Jeroen's student ...
This commit is contained in:
evomarc 2003-12-24 16:38:02 +00:00
commit c819ba4f6a

View file

@ -101,7 +101,7 @@ template<class EOT> class eoUniformMutation: public eoMonOp<EOT>
{
if (rng.flip(p_change[0]))
{
_eo[0] += 2*epsilon[0]*rng.uniform()-epsilon[0];
_eo[lieu] += 2*epsilon[0]*rng.uniform()-epsilon[0];
hasChanged = true;
}
}