首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::piecewise_constant_distribution::piecewise_constant_distribution

piecewise_constant_distribution();

(1)

(since C++11)

template< class InputIt1, class InputIt2 > piecewise_constant_distribution( InputIt1 first_i, InputIt1 last_i, InputIt2 first_w );

(2)

(since C++11)

template< class UnaryOperation > piecewise_constant_distribution( std::initializer_list<RealType> bl, UnaryOperation fw );

(3)

(since C++11)

template< class UnaryOperation > piecewise_constant_distribution( std::size_t nw, RealType xmin, RealType xmax, UnaryOperation fw );

(4)

(since C++11)

explicit piecewise_constant_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构造一个分发对象,其中从初始化程序列表中获取间隔。bl以及由函数生成的权重fw...

4%29使用nw均匀分布区间[xmin, xmax]以及由函数生成的权重fw...

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 sequnce

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

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com