aureservoir::Rand< T > Class Template Reference

#include <utilities.h>


Detailed Description

template<typename T = float>
class aureservoir::Rand< T >

This class is used as random number generator for various distributions.
Examples:

esn_example.cpp.


Static Public Member Functions

static void initSeed ()
static T uniform (float min=-1, float max=1)
static void uniform (typename DEVector< T >::Type &vec, float min=-1, float max=1)

Member Function Documentation

template<typename T = float>
static void aureservoir::Rand< T >::initSeed (  )  [inline, static]

inits the random seed

template<typename T = float>
static T aureservoir::Rand< T >::uniform ( float  min = -1,
float  max = 1 
) [inline, static]

generates a pseudo random number from a uniform distribution

Parameters:
min minimum value
max maximum value
Returns:
value between [min|max)

template<typename T = float>
static void aureservoir::Rand< T >::uniform ( typename DEVector< T >::Type &  vec,
float  min = -1,
float  max = 1 
) [inline, static]

generates a pseudo random number vector from a uniform distribution

Parameters:
vec fills this vector with rand values between [min|max)
min minimum value
max maximum value


The documentation for this class was generated from the following file:
Generated on Wed Mar 12 21:16:15 2008 for aureservoir by  doxygen 1.5.3