次の方法で共有


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;
    };

解説

このパラメーター パッケージを operator() に渡して、戻り値を生成できます。

必要条件

ヘッダー : <random>

名前空間: std

参照

関連項目

<random>

piecewise_linear_distribution クラス