共用方式為


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

備註

這個參數封裝可以傳遞至 運算子 () 會產生傳回值。

需求

標題: <random>

命名空間: std

請參閱

參考

<random>

negative_binomial_distribution Class