Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Types | Private Attributes
jafar::jmath::UNIFORM_GENERATOR< T > Class Template Reference

Detailed Description

template<typename T>
class jafar::jmath::UNIFORM_GENERATOR< T >

Definition at line 38 of file uniform_random.hpp.

List of all members.

Public Member Functions

 UNIFORM_GENERATOR (T _min=0, T _max=1, uint32_t _seed=-1)
run ()
void seed (uint32_t _seed)
 change seed value : new seed value
void fill_vector (ublas::vector< T > &v)
 fills vector v with uniform randomly generated numbers
void fill_vector (std::vector< T > &v)
void fill_matrix (ublas::matrix< T > &m)
 fills matrix m with uniform randomly generated numbers

Private Types

typedef boost::mt19937 generator_type
typedef uniform_distribution
< T >::type 
distribution_type

Private Attributes

min
max
uint32_t seed_value
distribution_type distribution
generator_type rng
boost::variate_generator
< generator_type
&, distribution_type > 
generator

Constructor & Destructor Documentation

template<typename T>
jafar::jmath::UNIFORM_GENERATOR< T >::UNIFORM_GENERATOR ( _min = 0,
_max = 1,
uint32_t  _seed = -1 
) [inline]
Parameters:
_min,:included lower bound
_max,:excluded higher bound
_seed,:seeding value

Definition at line 54 of file uniform_random.hpp.


Member Function Documentation

template<typename T>
T jafar::jmath::UNIFORM_GENERATOR< T >::run ( ) [inline]
Returns:
a randomly generated number in the interval [min, max[

Definition at line 65 of file uniform_random.hpp.

Referenced by jafar::jmath::UNIFORM_GENERATOR< T >::fill_matrix(), and jafar::jmath::UNIFORM_GENERATOR< T >::fill_vector().


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

Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1
LAAS-CNRS