Robot Simulator of the Robotics Group for Self-Organization of Control
0.8.0
|
Sine wave noise. Produces a 90 degree phase shifted sine wave or white noise. More...
#include <noisegenerator.h>
Public Member Functions | |
SineWhiteNoise (double omega, double amplitude, double phaseShift=M_PI/2, unsigned int channels=0xFFFF) | |
virtual | ~SineWhiteNoise () |
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... | |
void | setOmega (double omega) |
void | setPhaseShift (double phaseShift) |
![]() | |
NoiseGenerator () | |
virtual | ~NoiseGenerator () |
virtual void | init (unsigned int dimension, RandGen *randGen=0) |
initialization with the the given dimension for multidimensional noise More... | |
virtual unsigned int | getDimension () const |
virtual void | setDimension (unsigned int dim) |
Protected Attributes | |
long int | t |
double | omega |
double | amplitude |
unsigned int | channels |
double | phaseShift |
![]() | |
unsigned int | dimension |
RandGen * | randGen |
bool | ownRandGen |
Additional Inherited Members | |
![]() | |
double | uniform (double min=-0.1, double max=0.1) |
double | uniform01 () |
Sine wave noise. Produces a 90 degree phase shifted sine wave or white noise.
|
inline |
omega | anglerate |
amplitude | weighting of sine wave against noise strength |
phaseShift | phase shift between channels in rad |
channels | number of channel for sine noise (and the rest get white noise) |
|
inlinevirtual |
|
inlinevirtual |
adds multidimensional noise to the value field.
value | field where noise is added. Must have length dimension (init()) |
Reimplemented from NoiseGenerator.
|
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.
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |