Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
generates white and normal distributed random numbers. More...
#include <noisegenerator.h>
Public Member Functions | |
WhiteNormalNoise () | |
virtual | ~WhiteNormalNoise () |
virtual double | generate () |
generate somehow distributed random number parameterized with min and max. More... | |
![]() | |
NoiseGenerator () | |
virtual | ~NoiseGenerator () |
virtual void | init (unsigned int dimension, RandGen *randGen=0) |
initialization with the the given dimension for multidimensional noise More... | |
virtual void | add (double *value, double noiseStrength) |
adds multidimensional noise to the value field. More... | |
virtual unsigned int | getDimension () const |
virtual void | setDimension (unsigned int dim) |
Additional Inherited Members | |
![]() | |
double | uniform (double min=-0.1, double max=0.1) |
double | uniform01 () |
![]() | |
unsigned int | dimension |
RandGen * | randGen |
bool | ownRandGen |
generates white and normal distributed random numbers.
p1: mean, p2: standard deviation new parameter definition: p1: min, p2: max. the mean and standard deviation are calculated by this values
|
inline |
|
inlinevirtual |
|
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.
Reimplemented in ColorNormalNoise.