eoGaussRealWeightUp Class Reference

Update an inertia weight by assigning it a Gaussian randomized value (used for the velocity in particle swarm optimization). 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 (used for the velocity in particle swarm optimization).

Definition at line 38 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 47 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 56 of file eoGaussRealWeightUp.h.

References eoRng::normal().


The documentation for this class was generated from the following file:

Generated on Thu Jan 1 23:19:46 2009 for EvolvingObjects by  doxygen 1.5.5