The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



Stores the parameters of the distribution.

struct param_type {
    typedef gamma_distribution<RealType> distribution_type;
    param_type(RealType alpha = 1.0, RealType beta 1.0);
    RealType alpha() const;
    RealType beta() const;
    bool operator==(const param_type& right) const;
    bool operator!=(const param_type& right) const;

Precondition: 0.0 < alpha and 0.0 < beta

This structure can be passed to the distribution's class constructor at instantiation, to the param() member function to set the stored parameters of an existing distribution, and to operator() to be used in place of the stored parameters.


Header: <random>

Namespace: std