“cpp/numeric/random/poisson distribution/operator()”的版本间的差异
来自cppreference.com
< cpp | numeric | random | poisson distribution
小 |
小 (include page) |
||
第1行: | 第1行: | ||
− | {{cpp/numeric/random/distribution/operator()|poisson_distribution}} | + | {{cpp/numeric/random/distribution/operator()|poisson_distribution}} |
{{langlinks|de|en|es|fr|it|ja|pt|ru}} | {{langlinks|de|en|es|fr|it|ja|pt|ru}} |
2018年6月16日 (六) 08:47的最后版本
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()。