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)). More... | |
static void | init (int seed) |
Initialize the random number generator, provide a seed. More... | |
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 38 of file NormRand.h.
|
static |
Initialize the random number generator, with current time (time(0)).
Definition at line 56 of file NormRand.cpp.
|
static |
Initialize the random number generator, provide a seed.
seed | a seed. |
Definition at line 61 of file NormRand.cpp.
|
static |
Definition at line 45 of file NormRand.cpp.
|
static |
Definition at line 18 of file NormRand.cpp.
|
static |
Definition at line 34 of file NormRand.cpp.
|
static |
Definition at line 23 of file NormRand.cpp.