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