exponential_distribution クラス

更新 : 2007 年 11 月

指数分布を生成します。

template<class RealType = double>
    class exponential_distribution {
public:
    typedef RealType input_type;
    typedef RealType result_type;
    explicit exponential_distribution(const result_type& lambda0 = result_type(1));
    result_type lambda() const;
    void reset();
    template<class Engine>
        result_type operator()(Engine& eng);
private:
    result_type stored_lambda;   // exposition only
    };

パラメータ

  • RealType
    エンジンの値を表す浮動小数点型。

解説

このテンプレート クラスは、ユーザー指定の浮動小数点型の値を指数分布を使って生成する分布を表します。

必要条件

ヘッダー : <random>

名前空間 : std::tr1

参照

参照

<random>

bernoulli_distribution クラス

binomial_distribution クラス

gamma_distribution クラス

geometric_distribution クラス

normal_distribution クラス

poisson_distribution クラス

uniform_int クラス

uniform_real クラス