EvolvingObjects
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 unary_function

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 40 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 49 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 58 of file eoGaussRealWeightUp.h.

References eoRng::normal().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends