31 #ifndef ROOT_Math_QuasiRandom 32 #define ROOT_Math_QuasiRandom 59 template <
class Engine>
127 return fEngine.GenerateArray(array, array+n*
NDim());
Namespace for new ROOT classes and functions.
QuasiRandom(unsigned int dimension=1)
Create a QuasiRandom generator.
User class for MathMore random numbers template on the Engine type.
bool RndmArray(int n, double *array)
Generate an array of random numbers between ]0,1[ Function to preserve ROOT Trandom compatibility The...
double Next()
Generate next quasi random numbers point (1 - dimension)
QuasiRandom(const Engine &e, unsigned int dimension=1)
Create a QuasiRandom generator based on a provided generic engine.
QuasiRandom< ROOT::Math::GSLQRngSobol > QuasiRandomSobol
double Rndm()
Generate quasi random numbers between ]0,1[ 0 and 1 are excluded Function to be compatible with ROOT ...
QuasiRandom< ROOT::Math::GSLQRngNiederreiter2 > QuasiRandomNiederreiter
std::string Name() const
Return the name of the generator.
bool Next(double *x)
Generate next quasi random numbers points.
* x
Deprecated and error prone model selection interface.
bool Skip(unsigned int n)
skip the next n number and jumb directly to the current state + n
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Namespace for new Math classes and functions.
~QuasiRandom()
Destructor: call Terminate() function of engine to free any allocated resource.
std::string Type() const
Return the type (name) of the used generator.
unsigned int EngineSize() const
Return the size of the generator state.
unsigned int NDim() const
Return the dimension of the generator.