ViSP
2.8.0
|
#include <vpNoise.h>
Public Member Functions | |
vpGaussRand () | |
vpGaussRand (const double sqrtvariance, const double _mean, const long seed=0) | |
void | setSigmaMean (const double _s, const double _m) |
void | seed (const long seed) |
double | operator() () |
Protected Member Functions | |
double | draw1 () |
void | init () |
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 |
Definition at line 141 of file vpNoise.h.
References vpUniRand::init(), and vpUniRand::x.
|
inline |
Definition at line 142 of file vpNoise.h.
References vpUniRand::init(), seed(), and vpUniRand::x.
|
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.
|
inlineprotectedinherited |
Definition at line 88 of file vpNoise.h.
Referenced by vpGaussRand().
|
inline |
Set the seed of the noise
seed | new seed |
Definition at line 162 of file vpNoise.h.
References seed(), and vpUniRand::x.
Referenced by seed(), and vpGaussRand().
|
inline |
|
protectedinherited |
Definition at line 86 of file vpNoise.h.
Referenced by vpUniRand::draw1(), seed(), and vpGaussRand().