User class for MathMore random numbers template on the Engine type.
The API of this class followed that of the class ROOT::Math::Random It must be implemented using as Engine one of the derived classes of ROOT::Math::GSLQuasiRandomEngine, like ROOT::Math::GSLQrngSobol
Definition at line 60 of file QuasiRandom.h.
Public Member Functions | |
QuasiRandom (const Engine &e, unsigned int dimension=1) | |
Create a QuasiRandom generator based on a provided generic engine. | |
QuasiRandom (unsigned int dimension=1) | |
Create a QuasiRandom generator. | |
~QuasiRandom () | |
Destructor: call Terminate() function of engine to free any allocated resource. | |
unsigned int | EngineSize () const |
Return the size of the generator state. | |
std::string | Name () const |
Return the name of the generator. | |
unsigned int | NDim () const |
Return the dimension of the generator. | |
double | Next () |
Generate next quasi random numbers point (1 - dimension) | |
bool | Next (double *x) |
Generate next quasi random numbers points. | |
double | Rndm () |
Generate quasi random numbers between ]0,1[ 0 and 1 are excluded Function to be compatible with ROOT TRandom compatibility. | |
bool | RndmArray (int n, double *array) |
Generate an array of random numbers between ]0,1[ Function to preserve ROOT Trandom compatibility The array will be filled as x1,y1,z1,....x2,y2,z2,... | |
bool | Skip (unsigned int n) |
skip the next n number and jumb directly to the current state + n | |
std::string | Type () const |
Return the type (name) of the used generator. | |
Private Attributes | |
Engine | fEngine |
#include <Math/QuasiRandom.h>
|
inline |
Create a QuasiRandom generator.
Use default engine constructor. Engine will be initialized via Initialize() function in order to allocate resources
Definition at line 70 of file QuasiRandom.h.
|
inlineexplicit |
Create a QuasiRandom generator based on a provided generic engine.
Engine will be initialized via Initialize() function in order to allocate resources
Definition at line 80 of file QuasiRandom.h.
|
inline |
Destructor: call Terminate() function of engine to free any allocated resource.
Definition at line 88 of file QuasiRandom.h.
|
inline |
Return the size of the generator state.
Definition at line 140 of file QuasiRandom.h.
|
inline |
Return the name of the generator.
Definition at line 154 of file QuasiRandom.h.
|
inline |
Return the dimension of the generator.
Definition at line 147 of file QuasiRandom.h.
|
inline |
Generate next quasi random numbers point (1 - dimension)
Definition at line 102 of file QuasiRandom.h.
|
inline |
Generate next quasi random numbers points.
Definition at line 95 of file QuasiRandom.h.
|
inline |
Generate quasi random numbers between ]0,1[ 0 and 1 are excluded Function to be compatible with ROOT TRandom compatibility.
Definition at line 111 of file QuasiRandom.h.
|
inline |
Generate an array of random numbers between ]0,1[ Function to preserve ROOT Trandom compatibility The array will be filled as x1,y1,z1,....x2,y2,z2,...
Definition at line 126 of file QuasiRandom.h.
|
inline |
skip the next n number and jumb directly to the current state + n
Definition at line 118 of file QuasiRandom.h.
|
inline |
Return the type (name) of the used generator.
Definition at line 133 of file QuasiRandom.h.
|
private |
Definition at line 160 of file QuasiRandom.h.