![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Contains useful methods for random stuff. More...
#include <chrono>#include <cstdlib>#include <ctime>#include <iostream>#include <numeric>#include <random>#include <utility>#include <vector>#include <agrum/agrum.h>#include <agrum/base/core/utils_random_inl.h>#include <agrum/base/core/utils_random_tpl.h>Go to the source code of this file.
Namespaces | |
| namespace | gum |
| gum is the global namespace for all aGrUM entities | |
| namespace | gum::_rand_namespace_ |
Functions | |
| std::mt19937 & | gum::_rand_namespace_::generator () |
| Idx | gum::randomValue (const Size max=2) |
| Returns a random Idx between 0 and max-1 included. | |
| double | gum::randomProba () |
| Returns a random double between 0 and 1 included (i.e. | |
| template<typename GUM_SCALAR> | |
| std::vector< GUM_SCALAR > | gum::randomDistribution (Size n) |
| Return a random discrete distribution. | |
| unsigned int | gum::randomGeneratorSeed () |
| Returns the aGrUM's seed used by the std::generators. | |
| unsigned int | gum::currentRandomGeneratorValue () |
| returns the current generator's value | |
| void | gum::initRandom (unsigned int seed=0) |
| Initialize random generator seed. | |
| std::mt19937 & | gum::randomGenerator () |
| define a random_engine with correct seed | |
Contains useful methods for random stuff.
Definition in file utils_random.h.