#include <Tutorial/eoRealOp.h>
Public Member Functions | |
eoDetUniformMutation (const double &_epsilon, const unsigned &_no=1) | |
(Default) Constructor for homogeneous genotype it's there mostly for backward compatibility | |
eoDetUniformMutation (eoRealVectorBounds &_bounds, const double &_epsilon, const unsigned &_no=1) | |
Constructor with bounds. | |
eoDetUniformMutation (eoRealVectorBounds &_bounds, const std::vector< double > &_epsilon, const unsigned &_no=1) | |
Constructor with bounds and full std::vector of epsilon. | |
virtual std::string | className () const |
The class name. | |
bool | operator() (EOT &_eo) |
Do it! | |
Private Attributes | |
bool | homogeneous |
eoRealVectorBounds & | bounds |
std::vector< double > | epsilon |
unsigned | no |
Definition at line 144 of file eoRealOp.h.
eoDetUniformMutation< EOT >::eoDetUniformMutation | ( | const double & | _epsilon, | |
const unsigned & | _no = 1 | |||
) | [inline] |
(Default) Constructor for homogeneous genotype it's there mostly for backward compatibility
_epsilon | the range for uniform nutation | |
number | of coordinate to modify |
Definition at line 154 of file eoRealOp.h.
eoDetUniformMutation< EOT >::eoDetUniformMutation | ( | eoRealVectorBounds & | _bounds, | |
const double & | _epsilon, | |||
const unsigned & | _no = 1 | |||
) | [inline] |
Constructor with bounds.
_bounds | an eoRealVectorBounds that contains the bounds | |
_epsilon | the range for uniform nutation (to be scaled if necessary) | |
number | of coordinate to modify |
Definition at line 164 of file eoRealOp.h.
References eoRealBaseVectorBounds::isBounded(), and eoRealBaseVectorBounds::range().
eoDetUniformMutation< EOT >::eoDetUniformMutation | ( | eoRealVectorBounds & | _bounds, | |
const std::vector< double > & | _epsilon, | |||
const unsigned & | _no = 1 | |||
) | [inline] |
Constructor with bounds and full std::vector of epsilon.
_bounds | an eoRealVectorBounds that contains the bounds | |
_epsilon | the VECTOR of ranges for uniform mutation | |
number | of coordinate to modify |
Definition at line 181 of file eoRealOp.h.
References eoRealBaseVectorBounds::isBounded(), and eoRealBaseVectorBounds::range().
bool eoDetUniformMutation< EOT >::operator() | ( | EOT & | _eo | ) | [inline] |
Do it!
_eo | The indi undergoing the mutation |
Definition at line 199 of file eoRealOp.h.
References eoRealBaseVectorBounds::isMaxBounded(), eoRealBaseVectorBounds::isMinBounded(), eoRealBaseVectorBounds::maximum(), eoRealBaseVectorBounds::minimum(), eoRng::random(), and eoRng::uniform().