|
EvolvingObjects
|
Update an inertia weight by assigning it a Gaussian randomized value (used for the velocity in particle swarm optimization). More...
#include <eoGaussRealWeightUp.h>
Public Member Functions | |
| eoGaussRealWeightUp (double _mean=0, double _stdev=1.0) | |
| Default constructor. | |
| void | operator() (double &_weight) |
| Assign Gaussian deviation to _weight. | |
Protected Attributes | |
| double | mean |
| double | stdev |
Update an inertia weight by assigning it a Gaussian randomized value (used for the velocity in particle swarm optimization).
Definition at line 40 of file eoGaussRealWeightUp.h.
| eoGaussRealWeightUp::eoGaussRealWeightUp | ( | double | _mean = 0, |
| double | _stdev = 1.0 |
||
| ) | [inline] |
Default constructor.
| _mean | - Mean for Gaussian distribution |
| _stdev | - Standard deviation for Gaussian distribution |
Definition at line 49 of file eoGaussRealWeightUp.h.
| void eoGaussRealWeightUp::operator() | ( | double & | _weight | ) | [inline, virtual] |
Assign Gaussian deviation to _weight.
| _weight | - The modified weight as a double |
Implements eoUF< double &, void >.
Definition at line 58 of file eoGaussRealWeightUp.h.
References eoRng::normal().