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