다음을 통해 공유


gamma_distribution Class

감마 분포를 생성합니다.

template<class RealType = double>
    class gamma_distribution {
public:
    typedef T1 input_type;
    typedef RealType result_type;
    struct param_type;
    explicit gamma_distribution(result_type alpha0 = result_type(1.0),
        result_type beta0 = result_type(1.0));
    explicit gamma_distribution(const param_type& par0);
    result_type alpha() const;
    result_type beta() 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_alpha;    // exposition only
    result_type stored_beta;     // exposition only
    };

매개 변수

  • RealType
    엔진을 부동 소수점 값 형식입니다.

설명

템플릿 클래스 부동 소수점 형식 사용자 지정 감마 분포의 값 분포를 설명 합니다.

요구 사항

헤더: <random>

네임 스페이스: std

참고 항목

참조

<random>

gamma_distribution::alpha

gamma_distribution::beta

gamma_distribution::gamma_distribution

gamma_distribution::operator()

gamma_distribution::param

gamma_distribution::param_type