A static class grouping function for normal random number generator. More...
#include <yarp/math/NormRand.h>
Static Public Member Functions | |
static double | scalar (double u=0.0, double sigma=1.0) |
static yarp::sig::Vector | vector (int s, double u=0.0, double sigma=1.0) |
static yarp::sig::Vector | vector (const yarp::sig::Vector &u, const yarp::sig::Vector &sigma) |
static yarp::sig::Matrix | matrix (int r, int c, double u=0.0, double sigma=1.0) |
static void | init () |
Initialize the random number generator, with current time (time(0)). | |
static void | init (int seed) |
Initialize the random number generator, provide a seed. | |
A static class grouping function for normal random number generator.
Thread safe.
Methods inside this class provides access to a global instance of a RandNScalar object that generates random numbers.
Definition at line 31 of file NormRand.h.
|
static |
Initialize the random number generator, with current time (time(0)).
Definition at line 54 of file NormRand.cpp.
|
static |
Initialize the random number generator, provide a seed.
seed | a seed. |
Definition at line 59 of file NormRand.cpp.
|
static |
Definition at line 42 of file NormRand.cpp.
|
static |
Definition at line 15 of file NormRand.cpp.
|
static |
Definition at line 31 of file NormRand.cpp.
|
static |
Definition at line 20 of file NormRand.cpp.