std::piecewise_linear_distribution<RealType>:: piecewise_linear_distribution
| Common mathematical functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical special functions (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical constants (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic linear algebra algorithms (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data-parallel types (SIMD) (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Floating-point environment (C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Complex numbers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Numeric array (
valarray
)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Pseudo-random number generation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bit manipulation (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturation arithmetic (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C-style checked integer arithmetic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
|
piecewise_linear_distribution::piecewise_linear_distribution
|
||||
| Generation | ||||
| Characteristics | ||||
| Non-member functions | ||||
|
(C++11)
(C++11)
(until C++20)
|
||||
|
(C++11)
(C++11)
|
|
piecewise_linear_distribution
(
)
;
|
(1) | (自 C++11 起) |
|
template
<
class
InputIt1,
class
InputIt2
>
piecewise_linear_distribution
(
InputIt1 first_i, InputIt1 last_i,
|
(2) | (自 C++11 起) |
|
template
<
class
UnaryOperation
>
piecewise_linear_distribution
(
std::
initializer_list
<
RealType
>
ilist,
|
(3) | (自 C++11 起) |
|
template
<
class
UnaryOperation
>
piecewise_linear_distribution
(
std::
size_t
nw,
|
(4) | (自 C++11 起) |
|
explicit
piecewise_linear_distribution
(
const
param_type
&
parm
)
;
|
(5) | (自 C++11 起) |
构造新的分段线性分布对象。
[
first_i
,
last_i
)
和起始于
first_w
的对应权重序列构造分布对象。
参数
| first_i | - | 初始化为区间序列起始位置的迭代器 |
| last_i | - | 初始化为区间序列结束位置后一位的迭代器 |
| first_w | - | 初始化为密度(权重)序列起始位置的迭代器 |
| ilist | - | 生成区间序列的初始化列表 |
| fw | - | 生成密度的 double(double) 类型函数 |
| nw | - | 密度数量 |
| xmin | - | 区间序列的下界 |
| xmax | - | 区间序列的上界 |
| parm | - | 分布参数集 |