다음을 통해 공유


piecewise_linear_distribution::param_type

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

struct param_type {
    typedef piecewise_linear_distribution<RealType> distribution_type;
    param_type();
    template<class InIt1, class InIt2>
        param_type(InIt1 first1, InIt1 last1,
            InIt2 first2);
    template<class Fn>
        param_type(initializer_list<RealType> init, Fn func);
    template<class Fn>
        param_type(size_t count,
            double low, double high, Fn func);
    std::vector<double> densities() const;
    std::vector<RealType> intervals() const;
    .....
    bool operator==(const param_type& right) const;
    bool operator!=(const param_type& right) const;
    };

설명

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

요구 사항

헤더: <random>

네임 스페이스: std

참고 항목

참조

<random>

piecewise_linear_distribution Class