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

vector of Random Inetegers More...


Detailed Description

template<class IntType>
class jafar::jmath::RandomIntVectTmplt< IntType >

vector of Random Inetegers

Random generation of vector of integers

used to get a vector of random interger whithin the range [min,max] of size nSize unSeed can be used (recommended) to variate the seed of the random algorithm

Definition at line 65 of file randomIntTmplt.hpp.

List of all members.

Public Member Functions

 RandomIntVectTmplt (std::size_t nSize, IntType nMin=0, IntType nMax=9, uint64_t unSeed=1)
std::vector< IntType > & get ()
 get a vector of random intergers
std::vector< IntType > & getDifferent ()
 get a vector of random Different integers
void SetSeed (uint64_t unSeed)
 change the seed

Private Attributes

boost::rand48 r_n_gen
boost::uniform_int unif_dist
 Random Number Generator.
boost::variate_generator
< boost::rand48
&, boost::uniform_int<> > 
v_g
 uniform distribution type
std::vector< IntType > u_

Member Function Documentation

template<class IntType >
std::vector< IntType > & jafar::jmath::RandomIntVectTmplt< IntType >::get ( )

get a vector of random intergers

this function return in each call a different vector of integers randomly selected from the rang [min,max]

Definition at line 147 of file randomIntTmplt.hpp.

template<class IntType >
std::vector< IntType > & jafar::jmath::RandomIntVectTmplt< IntType >::getDifferent ( )

get a vector of random Different integers

this function return in each call a different vector of Different integers randomly selected from the rang [min,max]

Note:
of course nSize < (nMax-nMin) must be verified !

Definition at line 156 of file randomIntTmplt.hpp.


Member Data Documentation

template<class IntType >
boost::variate_generator<boost::rand48&, boost::uniform_int<> > jafar::jmath::RandomIntVectTmplt< IntType >::v_g [private]

uniform distribution type

variate generator

Definition at line 98 of file randomIntTmplt.hpp.


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