Loris::NoiseGenerator Class Reference
List of all members.
Constructor & Destructor Documentation
Loris::NoiseGenerator::NoiseGenerator |
( |
double |
initSeed = 1.0 |
) |
[explicit] |
Create a new noise generator with the (optionally) specified seed (default is 1.0).
- Parameters:
-
| initSeed | is the initial seed for the random number generator |
Member Function Documentation
double Loris::NoiseGenerator::operator() |
( |
void |
|
) |
[inline] |
double Loris::NoiseGenerator::sample |
( |
void |
|
) |
|
Generate and return a new sample of Gaussian noise having zero mean and unity standard deviation. Approximate the normal distribution using the Box-Muller transformation applied to a uniform random number generator taken from "Random Number Generators: Good Ones Are Hard To Find," Stephen Park and Keith Miller, Communications of the ACM, October 1988, vol. 31, Number 10.
void Loris::NoiseGenerator::seed |
( |
double |
newSeed |
) |
|
Re-seed the random number generator.
- Parameters:
-
| newSeed | is the new seed for the random number generator |
The documentation for this class was generated from the following file: