piecewise_linear_distribution::param_type
분포의 모든 매개 변수를 저장합니다.
struct param_type { typedef piecewise_linear_distribution<RealType> distribution_type; param_type(); template<class IterI, class IterW> param_type(IterI firstI, IterI lastI, IterW firstW); template<class UnaryOperation> param_type(size_t count, RealType xmin, RealType xmax, UnaryOperation weightfunc); std::vector<RealType> densities() const; std::vector<RealType> intervals() const; ..... bool operator==(const param_type& right) const; bool operator!=(const param_type& right) const; };
매개 변수
상위 항목인 piecewise_linear_distribution 클래스를 참조하세요.
설명
사전 조건: xmin < xmax
이 구조를 인스턴스화 시에는 분포의 클래스 생성자로, 기존 분포의 저장된 매개 변수를 설정하기 위해서는 param() 멤버 함수로, 저장된 매개 변수 대신 사용하기 위해서는 operator()로 전달할 수 있습니다.
요구 사항
헤더: <random>
네임스페이스: std