|
glucat
0.8.2
|
Random number generator with single instance per Scalar_T. More...
#include <random.h>
Public Member Functions | |
| Scalar_T | uniform () |
| Scalar_T | normal () |
Static Public Member Functions | |
| static random_generator & | generator () |
| Single instance of Random number generator. More... | |
Private Member Functions | |
| random_generator (const random_generator &) | |
| random_generator & | operator= (const random_generator &) |
| random_generator () | |
| ~random_generator () | |
Private Attributes | |
| std::mt19937 | uint_gen |
| std::uniform_real_distribution< double > | uniform_dist |
| std::normal_distribution< double > | normal_dist |
Static Private Attributes | |
| static const unsigned long | seed = 19590921UL |
Friends | |
| class | friend_for_private_destructor |
Random number generator with single instance per Scalar_T.
|
private |
|
inlineprivate |
Definition at line 83 of file random.h.
References glucat::random_generator< Scalar_T >::seed.
|
inlineprivate |
|
inlinestatic |
|
inline |
Definition at line 93 of file random.h.
References glucat::random_generator< Scalar_T >::normal_dist.
|
private |
|
inline |
Definition at line 91 of file random.h.
References glucat::random_generator< Scalar_T >::uniform_dist.
|
friend |
Friend declaration to avoid compiler warning: "... only defines a private destructor and has no friends" Ref: Carlos O'Ryan, ACE http://doc.ece.uci.edu
|
private |
Definition at line 81 of file random.h.
Referenced by glucat::random_generator< Scalar_T >::normal().
|
staticprivate |
Definition at line 59 of file random.h.
Referenced by glucat::random_generator< Scalar_T >::random_generator().
|
private |
|
private |
Definition at line 80 of file random.h.
Referenced by glucat::random_generator< Scalar_T >::uniform().
1.8.14