다음을 통해 공유


discrete_distribution::param_type

분포의 매개 변수를 모두 저장합니다.

struct param_type {
    typedef discrete_distribution<IntType> distribution_type;
    param_type();
    template<class Fn>
        param_type(size_t count,
            double low, double high, Fn func);
    std::vector<double> probabilities() const;
    bool operator==(const param_type& right) const;
    bool operator!=(const param_type& right) const;
    };

설명

이 매개 변수를 패키지에 전달할 수 있습니다 operator () 의 반환 값을 생성 합니다.

요구 사항

헤더: <random>

네임 스페이스: std

참고 항목

참조

<random>

discrete_distribution Class