Corrected a but in eoUniformMutation (only the first component ever got modified!
Thanks to Jeroen's student ...
This commit is contained in:
parent
a3d7e396b4
commit
c819ba4f6a
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ template<class EOT> class eoUniformMutation: public eoMonOp<EOT>
|
||||||
{
|
{
|
||||||
if (rng.flip(p_change[0]))
|
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;
|
hasChanged = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Reference in a new issue