29 #ifndef GUM_LEARNING_DIRICHLET_H 30 #define GUM_LEARNING_DIRICHLET_H 129 template <
class URNG >
157 float min() const noexcept;
165 float max() const noexcept;
184 #ifndef GUM_NO_INLINE A class for sampling w.r.t.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
const param_type & param() const noexcept
Returns the parameters of the distribution.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Dirichlet(const param_type ¶ms, unsigned int seed=GUM_RANDOMSEED)
Default constructor.
float min() const noexcept
Returns the greatest lower bound of the range of values returned by gum::Dirichlet::operator()().
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.
std::default_random_engine __generator
The random engine used by the unform random distribution.
float max() const noexcept
Returns the lowest higher bound of the range of values returned by gum::Dirichlet::operator()().
~Dirichlet()
Class destructor.
result_type operator()()
Returns a sample from the Dirichlet distribution.
param_type __params
The parameters of the distribution.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Dirichlet & operator=(const Dirichlet &from)
Copy operator.