#include <eoNormalMutation.h>
Inheritance diagram for eoNormalMutation< EOT >:

Public Member Functions | |
| eoNormalMutation (double &_sigma, const double &_p_change=1.0) | |
| (Default) Constructor. | |
| eoNormalMutation (eoRealVectorBounds &_bounds, double _sigma, const double &_p_change=1.0) | |
| Constructor with bounds. | |
| virtual std::string | className () const |
| The class name. | |
| bool | operator() (EOT &_eo) |
| Do it! | |
| double & | Sigma () |
| Accessor to ref to sigma - for update and monitor. | |
Private Attributes | |
| double & | sigma |
| eoRealVectorBounds & | bounds |
| double | p_change |
The stDev is fixed - but it is passed ans stored as a reference, to enable dynamic mutations (see eoOenFithMutation below).
As for the bounds, the values are here folded back into the bounds. The other possiblity would be to iterate until we fall inside the bounds - but this sometimes takes a long time!!!
Definition at line 116 of file eoNormalMutation.h.
|
||||||||||||||||
|
(Default) Constructor. The bounds are initialized with the global object that says: no bounds.
Definition at line 127 of file eoNormalMutation.h. |
|
||||||||||||||||||||
|
Constructor with bounds.
Definition at line 136 of file eoNormalMutation.h. |
|
||||||||||
|
Do it!
Implements eoUF< EOT &, bool >. Reimplemented in eoOneFifthMutation< EOT >. Definition at line 147 of file eoNormalMutation.h. References eoRng::flip(), eoRealBaseVectorBounds::foldsInBounds(), and eoRng::normal(). Referenced by eoOneFifthMutation< EOT >::operator()(). |
1.3.9.1