IT++ Logo
Public Member Functions

itpp::Uniform_RNG Class Reference

Uniform distribution. More...

#include <itpp/base/random.h>

List of all members.

Public Member Functions

 Uniform_RNG (double min=0, double max=1.0)
 Constructor. Set min, max and seed.
void setup (double min, double max)
 set min and max
void get_setup (double &min, double &max) const
 get parameters
double operator() ()
 Get one sample.
vec operator() (int n)
 Get a sample vector.
mat operator() (int h, int w)
 Get a sample matrix.
double sample ()
 Get a Uniformly distributed (0,1) sample.
void sample_vector (int size, vec &out)
 Get a Uniformly distributed (0,1) vector.
void sample_matrix (int rows, int cols, mat &out)
 Get a Uniformly distributed (0,1) matrix.

Detailed Description

Uniform distribution.

Definition at line 345 of file random.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SourceForge Logo

Generated on Wed Feb 9 2011 13:47:27 for IT++ by Doxygen 1.7.3