ViSP
2.9.0
|
#include <vpNoise.h>
Public Member Functions | |
vpGaussRand () | |
vpGaussRand (const double sigma_val, const double mean_val, const long noise_seed=0) | |
void | setSigmaMean (const double sigma_val, const double mean_val) |
void | seed (const long seed_val) |
double | operator() () |
Protected Member Functions | |
double | draw1 () |
Protected Attributes | |
long | x |
Class for generating random number with normal probability density.
The algorithms and notations used are described in "Random Number Generation and Monte Carlo Methods", James E. Gentle, Springer 1998
The code below shows how to use the random generator.
|
inline |
|
inline |
|
protectedinherited |
Bays-Durham Shuffling of Park-Miller generator.
Minimal random number generator of Park and Miller with Bays-Durham shuffle. Returns a uniform random deviate between 0.0 and 1.0 (exclusive of the endpoint values).
Definition at line 83 of file vpNoise.cpp.
References vpUniRand::x.
|
inline |
|
inline |
Set the seed of the noise.
seed_val | : New seed. |
Definition at line 161 of file vpNoise.h.
References vpUniRand::x.
|
inline |
|
protectedinherited |
Definition at line 83 of file vpNoise.h.
Referenced by vpUniRand::draw1(), and seed().