|
EvolvingObjects
|
eoDetUniformMutation --> changes exactly k values of the std::vector by uniform choice with range epsilon More...
#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 |
eoDetUniformMutation --> changes exactly k values of the std::vector by uniform choice with range epsilon
Definition at line 148 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 |
| _no | number of coordinate to modify |
Definition at line 158 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) |
| _no | number of coordinate to modify |
Definition at line 168 of file eoRealOp.h.
References eoRealBaseVectorBounds::isBounded().
| 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 |
| _no | number of coordinates to modify |
Definition at line 185 of file eoRealOp.h.
References eoRealBaseVectorBounds::isBounded().
| bool eoDetUniformMutation< EOT >::operator() | ( | EOT & | _eo | ) | [inline, virtual] |
Do it!
| _eo | The indi undergoing the mutation |
Implements eoUF< EOT &, bool >.
Definition at line 203 of file eoRealOp.h.
References eoRealBaseVectorBounds::minimum(), eoRng::random(), and eoRng::uniform().