57 if (std::string(
type) ==
"default")
60 const gsl_rng_type* T=gsl_rng_default;
62 TFXX_assert(
MR!=NULL,
"gsl_rng_alloc(T) failed to initialize RNG");
66 const gsl_rng_type* T=NULL;
67 const gsl_rng_type **t, **t0;
68 t0 = gsl_rng_types_setup ();
70 for (t = t0; *t != 0; t++)
72 if (std::string((*t)->name)==std::string(
type)) { T=(*t); }
76 TFXX_assert(
MR!=NULL,
"gsl_rng_alloc(T) failed to initialize RNG");
78 this->
set(gsl_rng_default_seed);
#define TFXX_assert(C, M)
Check an assertion and report by throwing an exception.
double Mstd
store standard deviation and mean value
double mean() const
return mean
std::string type() const
return type of random number generator
#define TFXX_Xassert(C, M, E)
Check an assertion and report by throwing an exception.
gsl_rng * MR
pointer to RNG