KJB
|
Wrapper for one of GSL's quasi-random generators. More...
#include <gsl_qrng.h>
Public Member Functions | |
Gsl_Qrng_basic (unsigned dimensions, const gsl_qrng_type *qtype, unsigned maxdim) | |
ctor builds the quasi-random generator More... | |
~Gsl_Qrng_basic () | |
void | read (double *destination) |
The old-fashioned way to read a quasi-random sample. More... | |
Vector | read () |
Best way to read a single random sample of known dimensionality. More... | |
const char * | name () const |
unsigned | get_dimensions () const |
Gsl_Qrng_basic (const Gsl_Qrng_basic< KIND > &that) | |
copy ctor More... | |
void | swap (Gsl_Qrng_basic< KIND > &that) |
swap two generators More... | |
Gsl_Qrng_basic< KIND > & | operator= (const Gsl_Qrng_basic< KIND > &that) |
assignment operator More... | |
Wrapper for one of GSL's quasi-random generators.
A quasi-random generator is deterministic, but it acts like a random number generator that gives you unnaturally "uniform" samples in D-dimensional space R(0,1)^D.
GSL is the GNU Scientific Library.
|
inline |
ctor builds the quasi-random generator
dimensions | Number of dimensions the QRNG is asked to "sample" |
KJB_error | if input is bad (dimensions is zero or too big) or cannot allocate memory. |
|
inline |
|
inline |
copy ctor
|
inline |
|
inline |
|
inline |
assignment operator
|
inline |
The old-fashioned way to read a quasi-random sample.
[in] | destination | must be an array of size at least that of the QRNG's dimensionality. |
KJB_error | if something goes wrong |
|
inline |
Best way to read a single random sample of known dimensionality.
|
inline |
swap two generators