33 template <
class URNG >
40 for (
Idx i = 0; i < size; ++i) {
41 __gamma.param(std::gamma_distribution< float >::param_type(parm[i], 1));
46 for (
Idx i = 0; i < size; ++i) {
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
std::gamma_distribution< float > __gamma
The gamma distribution used to compute the Dirichlet unnormalized samples.
std::vector< float > param_type
The parameter type.
std::vector< float > result_type
The type for the samples generated.
result_type operator()()
Returns a sample from the Dirichlet distribution.
Size Idx
Type for indexes.
std::size_t Size
In aGrUM, hashed values are unsigned long int.