std::piecewise_linear_distribution::piecewise_linear_distribution
STD:分段[医]线性[医]分配::分段[医]线性[医]分布
piecewise_linear_distribution( | (1) | (since C++11) |
---|---|---|
template< class InputIt1, class InputIt2 > piecewise_linear_distribution( InputIt1 first_i, InputIt1 last_i, InputIt2 first_w | (2) | (since C++11) |
template< class UnaryOperation > piecewise_linear_distribution( std::initializer_list<RealType> ilist, UnaryOperation fw | (3) | (since C++11) |
template< class UnaryOperation > piecewise_linear_distribution( std::size_t nw, RealType xmin, RealType xmax, UnaryOperation fw | (4) | (since C++11) |
explicit piecewise_linear_distribution( const param_type& parm | (5) | (since C++11) |
构造新的分段线性分布对象。
1%29构造一个分发对象n
=1,ρ0
=1,B0
=0,和B1
=1。
2%29通过和间隔序列上的迭代器构造一个分布对象。[first_i, last_i)
和一个匹配的权重序列从first_w
...
3%29构造一个分发对象,其中从初始化程序列表中获取间隔。ilist
以及由函数生成的权重fw
...
4%29使用fw
均匀分布区间[xmin, xmax]
5%29构造一个使用参数初始化的分发对象。param
...
参数
first_i | - | iterator initialized to the start of the interval sequence |
---|---|---|
last_i | - | iterator initialized to one-past-the-end of the interval sequence |
first_w | - | iterator initialized to the start of the density (weight) sequence |
ilist_i | - | initializer_list yielding the interval sequence |
fw | - | double(double) function yielding the densities |
nw | - | the number of densities |
xmin | - | the lower bound of the interval sequence |
xmax | - | the upper bound of the interval sequence |
parm | - | the distribution parameter set |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
http://en.cppreference.com/w/cpp/数值/随机/分段[医]线性[医]分配/分段[医]线性[医]分布