SineWhiteNoise Class Reference
Sine wave noise. Produces a 90 degree phase shifted sine wave or white noise.
More...
#include <noisegenerator.h>
Inherits NoiseGenerator.
List of all members.
Detailed Description
Sine wave noise. Produces a 90 degree phase shifted sine wave or white noise.
Constructor & Destructor Documentation
SineWhiteNoise |
( |
double |
omega, |
|
|
double |
amplitude, |
|
|
double |
phaseShift = M_PI/2 , |
|
|
unsigned int |
channels = 0xFFFF | |
|
) |
| | [inline] |
- Parameters:
-
| 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) |
Member Function Documentation
virtual void add |
( |
double * |
value, |
|
|
double |
noiseStrength | |
|
) |
| | [inline, virtual] |
adds multidimensional noise to the value field.
- Parameters:
-
| value | field where noise is added. Must have length dimension (init()) |
Reimplemented from NoiseGenerator.
virtual double generate |
( |
|
) |
[inline, virtual] |
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.
void setOmega |
( |
double |
omega |
) |
[inline] |
void setPhaseShift |
( |
double |
phaseShift |
) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following file: