|
Jafar
|
Definition at line 38 of file uniform_random.hpp.
Public Member Functions | |
| UNIFORM_GENERATOR (T _min=0, T _max=1, uint32_t _seed=-1) | |
| T | 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 | |
| T | min |
| T | max |
| uint32_t | seed_value |
| distribution_type | distribution |
| generator_type | rng |
|
boost::variate_generator < generator_type &, distribution_type > | generator |
| jafar::jmath::UNIFORM_GENERATOR< T >::UNIFORM_GENERATOR | ( | T | _min = 0, |
| T | _max = 1, |
||
| uint32_t | _seed = -1 |
||
| ) | [inline] |
| _min,: | included lower bound |
| _max,: | excluded higher bound |
| _seed,: | seeding value |
Definition at line 54 of file uniform_random.hpp.
| T jafar::jmath::UNIFORM_GENERATOR< T >::run | ( | ) | [inline] |
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().
| Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1 |
|