rutz::urand Class Reference

Uniform random distribution. More...

#include <rutz/rand.h>

List of all members.

Public Member Functions

 urand (long s=0)
void seed (long s)
double fdraw ()
 Uniform random distribution in the interval [0.0:1.0[.
double fdraw_range (double min, double max)
 Uniform random distribution in the interval [min:max[.
bool booldraw ()
 Uniform random distribution between true:false.
int idraw (int n)
 Uniform random distribution in the interval [0:n[.
int idraw_range (int lo, int hi)
 Uniform random distribution in the interval [lo:hi[.
int operator() (int n)
 Uniform random distribution in the interval [0:n[.

Detailed Description

Uniform random distribution.

Definition at line 65 of file rand.h.


Member Function Documentation

bool rutz::urand::booldraw (  )  [inline]

Uniform random distribution between true:false.

Definition at line 92 of file rand.h.

References fdraw().

double rutz::urand::fdraw (  )  [inline]

Uniform random distribution in the interval [0.0:1.0[.

Definition at line 80 of file rand.h.

Referenced by booldraw(), fdraw_range(), idraw(), and GameOfLifeInput::readFrame().

double rutz::urand::fdraw_range ( double  min,
double  max 
) [inline]

Uniform random distribution in the interval [min:max[.

Definition at line 86 of file rand.h.

References fdraw().

int rutz::urand::idraw ( int  n  )  [inline]

Uniform random distribution in the interval [0:n[.

Definition at line 98 of file rand.h.

References fdraw().

int rutz::urand::idraw_range ( int  lo,
int  hi 
) [inline]

Uniform random distribution in the interval [lo:hi[.

Definition at line 104 of file rand.h.

int rutz::urand::operator() ( int  n  )  [inline]

Uniform random distribution in the interval [0:n[.

Definition at line 110 of file rand.h.


The documentation for this class was generated from the following file:
Generated on Sun May 8 08:44:44 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3