命名空间
变体
操作

std::lognormal_distribution<RealType>::运算符()

来自 cppreference.cn
 
 
 
 
 
template< class Generator >
result_type operator()( Generator& g );
(1) (自 C++11 起)
template< class Generator >
result_type operator()( Generator& g, const param_type& params );
(2) (自 C++11 起)

生成根据相关概率函数分布的随机数。 通过调用 g.operator() 获取熵。

第一个版本使用关联的参数集,第二个版本使用 params。 关联的参数集不会被修改。

[编辑] 参数

g - 一个均匀随机位生成器对象
params - 要使用的分布参数集,而不是关联的参数集
类型要求
-
Generator 必须满足 UniformRandomBitGenerator 的要求。

[编辑] 返回值

生成的随机数。

[编辑] 复杂度

摊销常数次调用 g.operator()