eoGaussRealWeightUp Class Reference

Update an inertia weight by assigning it a Gaussian randomized value. More...

#include <eoGaussRealWeightUp.h>

Inheritance diagram for eoGaussRealWeightUp:

eoWeightUpdater< double > eoUF< double &, void > eoFunctorBase List of all members.

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

Detailed Description

Update an inertia weight by assigning it a Gaussian randomized value.

Definition at line 23 of file eoGaussRealWeightUp.h.


Constructor & Destructor Documentation

eoGaussRealWeightUp::eoGaussRealWeightUp ( double  _mean = 0,
double  _stdev = 1.0 
) [inline]

Default constructor.

Parameters:
_mean - Mean for Gaussian distribution
_stdev - Standard deviation for Gaussian distribution

Definition at line 32 of file eoGaussRealWeightUp.h.


Member Function Documentation

void eoGaussRealWeightUp::operator() ( double &  _weight  )  [inline, virtual]

Assign Gaussian deviation to _weight.

Parameters:
_weight - The modified weight as a double

Implements eoUF< double &, void >.

Definition at line 41 of file eoGaussRealWeightUp.h.

References mean, eoRng::normal(), and stdev.


The documentation for this class was generated from the following file:
Generated on Fri Jun 22 10:17:02 2007 for EO-PSO by  doxygen 1.4.7