Export (0) Print
Expand All

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
    };

RealType

The floating-point engine value type.

The template class decribes a distribution that produces values of a user-specified floating-point type with a gamma distribution.

Header: <random>

Namespace: std::tr1

Community Additions

ADD
Show:
© 2014 Microsoft