negative_binomial_distribution クラス
負の二項分布を生成します。
template<class IntType = int>
class negative_binomial_distribution {
public:
typedef IntType result_type;
struct param_type;
explicit negative_binomial_distribution(result_type k0 = 1,
double p0 = 0.5);
explicit negative_binomial_distribution(const param_type& par0);
result_type k() const;
double p() const;
param_type param() const;
void param(const param_type& par0);
result_type min() const;
result_type max() const;
void reset();
template<class Engine>
result_type operator()(Engine& eng);
template<class Engine>
result_type operator()(Engine& eng,
const param_type& par0);
private:
result_type stored_k;
double stored_p;
};
パラメーター
パラメーター |
説明 |
---|---|
IntType |
結果を表す整数型。 |
解説
このテンプレート クラスは、負の二項分布を使用してユーザー指定の整数型の値を生成する分布を表します。
必要条件
ヘッダー : <random>
名前空間: std
参照
関連項目
negative_binomial_distribution::negative_binomial_distribution
negative_binomial_distribution::operator()