Namespaces
Variants

std::lognormal_distribution<RealType>:: lognormal_distribution

From cppreference.net
lognormal_distribution ( ) : lognormal_distribution ( 0.0 ) { }
(1) (自 C++11 起)
explicit lognormal_distribution ( RealType m, RealType s = 1.0 ) ;
(2) (自 C++11 起)
explicit lognormal_distribution ( const param_type & params ) ;
(3) (自 C++11 起)

构造一个新的分布对象。

2) 使用 m s 作为分布参数。
3) 使用 params 作为分布参数。

参数

m - m 分布参数(对数尺度)
s - s 分布参数(形状参数)
params - 分布参数集合

缺陷报告

以下行为变更缺陷报告被追溯应用于先前发布的C++标准。

缺陷报告 适用范围 发布时行为 正确行为
P0935R0 C++11 默认构造函数为显式 改为隐式