![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org. More...
#include <chrono>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <numeric>
#include <random>
#include <utility>
#include <vector>
#include <agrum/agrum.h>
#include <agrum/tools/core/utils_random_inl.h>
#include <agrum/tools/core/utils_random_tpl.h>
Go to the source code of this file.
Namespaces | |
gum | |
Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org. | |
Functions | |
Idx | gum::randomValue (const Size max=2) |
Returns a random Idx between 0 and max-1 included. More... | |
double | gum::randomProba () |
Returns a random double between 0 and 1 included (i.e. More... | |
template<typename GUM_SCALAR > | |
std::vector< GUM_SCALAR > | gum::randomDistribution (Size n) |
Return a random discrete distribution. More... | |
unsigned int | gum::randomGeneratorSeed () |
Returns the aGrUM's seed used by the std::generators. More... | |
void | gum::initRandom (unsigned int seed=0) |
Initialize random generator seed. More... | |
std::default_random_engine | gum::getRandomGenerator (unsigned int seed=0) |
define a random_engine with correct seed More... | |
Copyright (c) 2005-2021 by Pierre-Henri WUILLEMIN() & Christophe GONZALES() info_at_agrum_dot_org.
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library. If not, see http://www.gnu.org/licenses/.
Contains usefull methods for random stuff.
Definition in file utils_random.h.