Namespaces
Variants

std::piecewise_constant_distribution<RealType>:: piecewise_constant_distribution

From cppreference.net
piecewise_constant_distribution ( ) ;
(1) (C++11부터)
template < class InputIt1, class InputIt2 >

piecewise_constant_distribution ( InputIt1 first_i, InputIt1 last_i,

InputIt2 first_w ) ;
(2) (C++11부터)
template < class UnaryOperation >

piecewise_constant_distribution ( std:: initializer_list < RealType > ilist_i,

UnaryOperation fw ) ;
(3) (C++11부터)
template < class UnaryOperation >

piecewise_constant_distribution ( std:: size_t nw,
RealType xmin, RealType xmax,

UnaryOperation fw ) ;
(4) (C++11부터)
explicit piecewise_constant_distribution ( const param_type & param ) ;
(5) (C++11부터)

새로운 조각별 상수 분포 객체를 생성합니다.

1) 분포 객체를 다음과 같은 매개변수로 생성합니다: n = 1 , ρ0 = 1 , b0 = 0 , 그리고 b1 = 1 .
2) 구간 시퀀스에 대한 반복자로부터 분포 객체를 생성합니다 [ first_i , last_i ) 그리고 일치하는 가중치 시퀀스가 first_w 에서 시작합니다.
3) 분포 객체를 생성하며, 구간들은 초기화자 리스트 ilist_i 에서 가져오고 가중치는 함수 fw 에 의해 생성됩니다.
4) nw 개의 구간을 [ xmin, xmax ] 범위에 균일하게 분포시키고, fw 함수로 생성된 가중치를 사용하여 분포 객체를 생성합니다.
5) 매개변수 param 으로 초기화된 분포 객체를 생성합니다.

매개변수

first_i - 구간 시퀀스의 시작점으로 초기화된 반복자
last_i - 구간 시퀀스의 끝 다음 위치로 초기화된 반복자
first_w - 밀도(가중치) 시퀀스의 시작점으로 초기화된 반복자
ilist_i - 구간 시퀀스를 제공하는 initializer_list
fw - 밀도를 제공하는 double(double) 함수
nw - 밀도 개수
xmin - 구간 시퀀스의 하한
xmax - 구간 시퀀스의 상한
param - 분포 매개변수 집합