poisson_distribution クラス
更新 : 2007 年 11 月
ポワソン分布を生成します。
template<class IntType = int, class RealType = double>
class poisson_distribution {
public:
typedef RealType input_type;
typedef IntType result_type;
explicit poisson_distribution(const RealType& mean0 = RealType(1));
RealType mean() const;
void reset();
template<class Engine>
result_type operator()(Engine& eng);
private:
RealType stored_mean; // exposition only
};
パラメータ
IntType
結果を表す整数型。RealType
エンジンの値を表す浮動小数点型。
解説
このテンプレート クラスは、ユーザー指定の整数型の値をポワソン分布を使って生成する分布を表します。
必要条件
ヘッダー : <random>
名前空間 : std::tr1