gamma_distribution Class
Generates a gammma distribution.
template<class RealType = double>
class gamma_distribution {
public:
typedef RealType input_type;
typedef RealType result_type;
explicit gamma_distribution(const result_type& alpha0 = result_type(1));
result_type alpha() const;
void reset();
template<class Engine>
result_type operator()(Engine& eng);
private:
result_type stored_alpha; // exposition only
};
Parameters
- RealType
The floating-point engine value type.
Remarks
The template class decribes a distribution that produces values of a user-specified floating-point type with a gamma distribution.
Requirements
Header: <random>
Namespace: std::tr1