Scythe-1.0.3
|
Adaptor for non-Scythe quasi-random number generators. More...
#include <scythestat/rng/wrapped_generator.h>
Public Member Functions | |
wrapped_generator (ENGINE &e) | |
Default constructor. | |
wrapped_generator (const wrapped_generator &wg) | |
Copy constructor. | |
double | runif () |
Generate a random uniform variate on (0, 1). | |
template<matrix_order O, matrix_style S> | |
Matrix< double, O > | runif (unsigned int rows, unsigned int cols) |
Generate a Matrix of random uniform variates. | |
Matrix< double, Col, Concrete > | runif (unsigned int rows, unsigned int cols) |
Generate a Matrix of random uniform variates. | |
Protected Attributes | |
ENGINE & | engine |
Adaptor for non-Scythe quasi-random number generators.
This class defines a wrapper for arbitrary random uniform number generators, allowing them to act as the underlying engine for random number generation in Scythe. Specifically, any function object that overloads the function call operator to return random uniform deviates on the interval (0, 1).
The wrapped_generator class extends Scythe's basic random number generating class, scythe::rng, implementing the interface that it defines.