Scythe-1.0.3
Public Member Functions | Protected Attributes
scythe::wrapped_generator< ENGINE > Class Template Reference

Adaptor for non-Scythe quasi-random number generators. More...

#include <scythestat/rng/wrapped_generator.h>

Inheritance diagram for scythe::wrapped_generator< ENGINE >:
Inheritance graph
[legend]
Collaboration diagram for scythe::wrapped_generator< ENGINE >:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

template<typename ENGINE>
class scythe::wrapped_generator< 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.

See also:
rng
lecuyer

The documentation for this class was generated from the following file: