std::exponential_distribution<RealType>::exponential_distribution

来自cppreference.com
 
 
 
 
 
exponential_distribution() : exponential_distribution(1.0) {}
(1) (C++11 起)
explicit exponential_distribution( RealType lambda );
(2) (C++11 起)
explicit exponential_distribution( const param_type& params );
(3) (C++11 起)

构造新的分布对象。

2)lambda 为分布参数。
3)params 为分布参数。

参数

lambda - λ 分布参数(频率参数)
params - 分布参数集

注解

要求 0 < lambda

缺陷报告

下列更改行为的缺陷报告追溯地应用于以前出版的 C++ 标准。

缺陷报告 应用于 出版时的行为 正确行为
P0935R0 C++11 默认构造函数曾为 explicit 使之为隐式