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
};
Parameters
IntType
The integer result type.RealType
The floating-point engine value type.
Remarks
The template class decribes a distribution that produces values of a user-specified integral type with a Poisson distribution.
Requirements
Header: <random>
Namespace: std::tr1