Namespaces
Variants
Views
Actions

std::exponential_distribution::exponential_distribution

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

 
 
 
 
 

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

<tr class="t-dcl ">

<td >
explicit exponential_distribution( RealType lambda = 1.0 );
</td>

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

<tr class="t-dcl ">

<td >
explicit exponential_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 lambda as the distribution parameter, the second version uses params as the distribution parameter.

Parameters

lambda - the λ distribution parameter (the rate parameter)
params - the distribution parameter set

Notes

Requires that 0 < lambda.