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