piecewise_linear_distribution::param_type
儲存所發出的所有參數。
struct param_type {
typedef piecewise_linear_distribution<RealType> distribution_type;
param_type();
template<class InIt1, class InIt2>
param_type(InIt1 first1, InIt1 last1,
InIt2 first2);
template<class Fn>
param_type(initializer_list<RealType> init, Fn func);
template<class Fn>
param_type(size_t count,
double low, double high, Fn func);
std::vector<double> densities() const;
std::vector<RealType> intervals() const;
.....
bool operator==(const param_type& right) const;
bool operator!=(const param_type& right) const;
};
備註
這個參數封裝可以傳遞至 運算子 () 會產生傳回值。
需求
標題: <random>
命名空間: std