30 template <
class URNG >
37 for (
Idx i = 0; i < size; ++i) {
38 __gamma.param(std::gamma_distribution< float >::param_type(parm[i], 1));
43 for (
Idx i = 0; i < size; ++i) {
gum is the global namespace for all aGrUM entities
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.