74 if (
this == &eng)
return *
this;
112 int status = gsl_qrng_get(
fQRng->
Rng(),
x );
113 return (status == 0);
120 for (
unsigned int i = 0; i <
n; ++i ) {
121 status |= gsl_qrng_get(
fQRng->
Rng(), &xtmp[0] );
130 for (
double * itr = begin; itr != end; itr+=
fQRng->
Dimension() ) {
131 status |= gsl_qrng_get(
fQRng->
Rng(), itr );
143 if (!
name)
return std::string();
144 return std::string(
name);
151 return gsl_qrng_size(
fQRng->
Rng() );
GSLQRngWrapper class to wrap gsl_qrng structure.
void Allocate(unsigned int dimension)
unsigned int Dimension() const
GSLQuasiRandomEngine Base class for all GSL quasi random engines, normally user instantiate the deriv...
std::string Name() const
return name of generator
void SetType(GSLQRngWrapper *r)
internal method used by the derived class to set the type of generators
GSLQuasiRandomEngine & operator=(const GSLQuasiRandomEngine &eng)
Assignment operator : make a deep copy of the contained GSL generator.
void Initialize(unsigned int dimension)
initialize the generator giving the dimension of the sequence If no rng is present the default one ba...
bool GenerateArray(double *begin, double *end) const
Generate an array of quasi random numbers The iterators points to the random numbers.
virtual ~GSLQuasiRandomEngine()
call Terminate()
void Terminate()
delete pointer to contained rng
GSLQuasiRandomEngine()
default constructor.
unsigned int NDim() const
return the dimension of generator
unsigned int Size() const
return the state size of generator
double operator()() const
Generate a random number between ]0,1[.
bool Skip(unsigned int n) const
Skip the next n random numbers.
Namespace for new Math classes and functions.
Namespace for new ROOT classes and functions.