negative_binomial_distribution::param_type

分布パラメーターを格納します。

struct param_type {
    typedef negative_binomial_distribution<IntType> distribution_type;
    param_type(result_type t0 = 1, double p0 = 0.5);
    result_type k() const;
    double p() const;
    bool operator==(const param_type& right) const;
    bool operator!=(const param_type& right) const;
    };

解説

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

必要条件

ヘッダー : <random>

名前空間: std

参照

関連項目

<random>

negative_binomial_distribution クラス