Freigeben über


piecewise_constant_distribution::param_type

Stores all the parameters of the distribution.

struct param_type {
    typedef piecewise_constant_distribution<RealType> distribution_type;
    param_type();
    template<class InIt1, class InIt2>
        param_type(InIt1 first1, InIt1 last1,
            InIt2 first2);
    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;
    };

Remarks

This parameter package can be passed to operator() to generate the return value.

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

piecewise_constant_distribution Class

Other Resources

<random> Members