26 #ifndef GUM_LEARNING_DIRICHLET_H 27 #define GUM_LEARNING_DIRICHLET_H 126 template <
class URNG >
154 float min() const noexcept;
162 float max() const noexcept;
181 #ifndef GUM_NO_INLINE A class for sampling w.r.t.
a class for sampling w.r.t.
const param_type & param() const noexcept
Returns the parameters of the distribution.
gum is the global namespace for all aGrUM entities
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.
Contains usefull methods for random stuff.
A class for sampling w.r.t.
Dirichlet & operator=(const Dirichlet &from)
Copy operator.