Namespaces
Variants
Views
Actions

std::poisson_distribution::poisson_distribution

From cppreference.com
< cpp‎ | numeric‎ | random‎ | poisson distribution
Revision as of 16:54, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
 

Template:ddcl list begin <tr class="t-dcl ">

<td >
explicit poisson_distribution( double mean = 1.0 );
</td>

<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
explicit poisson_distribution( const param_type& params );
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Constructs a new distribution object. The first version uses mean as the distribution parameter, the second version uses params as the distribution parameter.

Parameters

mean - the μ distribution parameter (the mean of the distribution)
params - the distribution parameter set

Notes

Requires that 0 < mean.