Export (0) Print
Expand All

poisson_distribution Class

Generates a Poisson distribution.

template<class IntType = int, class RealType = double>
    class poisson_distribution {
public:
    typedef RealType input_type;
    typedef IntType result_type;
    explicit poisson_distribution(const RealType& mean0 = RealType(1));
    RealType mean() const;
    void reset();
    template<class Engine>
        result_type operator()(Engine& eng);
private:
    RealType stored_mean;     // exposition only
    };

IntType

The integer result type.

RealType

The floating-point engine value type.

The template class decribes a distribution that produces values of a user-specified integral type with a Poisson distribution.

Header: <random>

Namespace: std::tr1

Community Additions

ADD
Show:
© 2014 Microsoft