Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ColorNormalNoise Class Reference

like ColorUniformNoise but averaging over normal distributed noise instead. More...

#include <noisegenerator.h>

Inheritance diagram for ColorNormalNoise:
Collaboration diagram for ColorNormalNoise:

Public Member Functions

 ColorNormalNoise (double tau=0.05)
 
virtual ~ColorNormalNoise ()
 
virtual void init (unsigned int dimension, RandGen *randGen=0)
 initialization with the the given dimension for multidimensional noise More...
 
virtual double generate ()
 generate somehow distributed random number parameterized with min and max. More...
 
virtual void add (double *value, double noiseStrength)
 adds multidimensional noise to the value field. More...
 
virtual double getTau ()
 
virtual void setTau (double newTau)
 
- Public Member Functions inherited from WhiteNormalNoise
 WhiteNormalNoise ()
 
virtual ~WhiteNormalNoise ()
 
- Public Member Functions inherited from NoiseGenerator
 NoiseGenerator ()
 
virtual ~NoiseGenerator ()
 
virtual unsigned int getDimension () const
 
virtual void setDimension (unsigned int dim)
 

Protected Attributes

double tau
 
double sqrttau
 
double * mean
 
double mean1channel
 
double factor
 
- Protected Attributes inherited from NoiseGenerator
unsigned int dimension
 
RandGenrandGen
 
bool ownRandGen
 

Additional Inherited Members

- Protected Member Functions inherited from NoiseGenerator
double uniform (double min=-0.1, double max=0.1)
 
double uniform01 ()
 

Detailed Description

like ColorUniformNoise but averaging over normal distributed noise instead.

Constructor & Destructor Documentation

ColorNormalNoise ( double  tau = 0.05)
inline
virtual ~ColorNormalNoise ( )
inlinevirtual

Member Function Documentation

virtual void add ( double *  value,
double  noiseStrength 
)
inlinevirtual

adds multidimensional noise to the value field.

Generic implementation calls generate for each channel. Overload this if you need different behavior.

Parameters
valuefield where noise is added. Must have length dimension (init())

Reimplemented from NoiseGenerator.

virtual double generate ( )
inlinevirtual

generate somehow distributed random number parameterized with min and max.

valid only for ONE random number, use add() for adding this kind of noise to several channels

Reimplemented from WhiteNormalNoise.

virtual double getTau ( )
inlinevirtual
virtual void init ( unsigned int  dimension,
RandGen randGen = 0 
)
inlinevirtual

initialization with the the given dimension for multidimensional noise

Parameters
dimensiondimensionality of vectors to be used by add
randGenpointer to a random generator. If zero a new one generated internally
See Also
add()

Reimplemented from NoiseGenerator.

virtual void setTau ( double  newTau)
inlinevirtual

Member Data Documentation

double factor
protected
double* mean
protected
double mean1channel
protected
double sqrttau
protected
double tau
protected

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