存储分布的所有参数。
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