std::weibull_distribution<RealType>::operator()
来自cppreference.com
< cpp | numeric | random | weibull
distribution
数值库
伪随机数生成
均匀随机位生成器 | ||||
(C++20)
|
||||
引擎及引擎适配器 | ||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
非确定性生成器 | ||||
(C++11)
|
||||
分布 | ||||
均匀分布 | ||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
伯努利分布 | ||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
泊松分布 | ||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
正态分布 | ||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
采样分布 | ||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
种子序列 | ||||
(C++11)
|
||||
C 库 | ||||
std::weibull_distribution
成员函数 | ||||
(C++11)
|
||||
生成 | ||||
weibull_distribution::operator()
(C++11)
|
||||
特征 | ||||
(C++11)(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
(C++11)
|
||||
成员函数 | ||||
(C++11)(C++11)(C++20
前)
|
||||
(C++11)(C++11)
|
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() 。