scythe::wrapped_generator< ENGINE > Class Template Reference

#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.

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


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


The documentation for this class was generated from the following file:
Generated on Wed Aug 15 14:53:57 2007 for Scythe-1.0.2 by  doxygen 1.4.7