gamma_distribution::gamma_distribution
Constructs the distribution.
explicit gamma_distribution(RealType alpha = 1.0, RealType beta = 1.0);
explicit gamma_distribution(const param_type& parm);
Parameters
alpha
The alpha distribution parameter.beta
The beta distribution parameter.parm
The parameter structure used to construct the distribution.
Remarks
**Precondition:**0.0 < alpha and 0.0 < beta
The first constructor constructs an object whose stored alpha value holds the value alpha and whose stored beta value holds the value beta.
The second constructor constructs an object whose stored parameters are initialized from parm. You can obtain and set the current parameters of an existing distribution by calling the param() member function.
Requirements
Header: <random>
Namespace: std