48#ifndef GUM_LEARNING_DIRICHLET_H
49#define GUM_LEARNING_DIRICHLET_H
164 float min() const noexcept;
172 float max() const noexcept;
a class for sampling w.r.t.
~Dirichlet()
Class destructor.
Dirichlet & operator=(const Dirichlet &from)
Copy operator.
result_type operator()()
Returns a sample from the Dirichlet distribution.
std::gamma_distribution< float > _gamma_
The gamma distribution used to compute the Dirichlet unnormalized samples.
std::vector< float > param_type
The parameter type.
float max() const noexcept
Returns the lowest higher bound of the range of values returned by gum::Dirichlet::operator()().
Dirichlet(const param_type ¶ms)
Default constructor.
param_type _params_
The parameters of the distribution.
const param_type & param() const noexcept
Returns the parameters of the distribution.
std::vector< float > result_type
The type for the samples generated.
float min() const noexcept
Returns the greatest lower bound of the range of values returned by gum::Dirichlet::operator()().
gum is the global namespace for all aGrUM entities
Contains useful methods for random stuff.