generated colored noise. This is obtained by using time average of uniform distributed noise.
More...
#include <noisegenerator.h>
generated colored noise. This is obtained by using time average of uniform distributed noise.
- Examples:
- integration/main.cpp.
- Parameters
-
tau | time averaging factor (1/window) (1: smoothing (white) 0.1: strong color, 0 no noise anymore |
virtual void add |
( |
double * |
value, |
|
|
double |
noiseStrength |
|
) |
| |
|
inlinevirtual |
adds multidimensional noise to the value field.
- Parameters
-
value | field where noise is added. Must have length dimension (init()) |
min | lower bound of interval |
max | upper 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
-
dimension | dimensionality of vectors to be used by add |
randGen | pointer to a random generator. If zero a new one generated internally |
- See Also
- add()
Reimplemented from NoiseGenerator.
virtual void setTau |
( |
double |
newTau | ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: