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
ColorUniformNoise Class Reference

generated colored noise. This is obtained by using time average of uniform distributed noise. More...

#include <noisegenerator.h>

Inheritance diagram for ColorUniformNoise:
Collaboration diagram for ColorUniformNoise:

Public Member Functions

 ColorUniformNoise (double tau=0.05)
 
virtual ~ColorUniformNoise ()
 
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 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
 
- 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

generated colored noise. This is obtained by using time average of uniform distributed noise.

Examples:
integration/main.cpp.

Constructor & Destructor Documentation

ColorUniformNoise ( double  tau = 0.05)
inline
Parameters
tautime averaging factor (1/window) (1: smoothing (white) 0.1: strong color, 0 no noise anymore
virtual ~ColorUniformNoise ( )
inlinevirtual

Member Function Documentation

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

adds multidimensional noise to the value field.

Parameters
valuefield where noise is added. Must have length dimension (init())
minlower bound of interval
maxupper bound of interval

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

Implements NoiseGenerator.

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* mean
protected
double mean1channel
protected
double sqrttau
protected
double tau
protected

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