Share via


piecewise_linear_distribution::param_type

Stores all the parameters of the distribution.

struct param_type {
    typedef piecewise_linear_distribution<RealType> distribution_type;
    param_type();
    template<class IterI, class IterW>
    param_type(IterI firstI, IterI lastI, IterW firstW);
    template<class UnaryOperation>
    param_type(size_t count, RealType xmin, RealType xmax, 
        UnaryOperation weightfunc);
    std::vector<RealType> densities() const;
    std::vector<RealType> intervals() const;
    .....
    bool operator==(const param_type& right) const;
    bool operator!=(const param_type& right) const;
};

Parameters

See parent topic piecewise_linear_distribution Class.

Remarks

**Precondition:**xmin < xmax

This structure can be passed to the distribution's class constructor at instantiation, to the param() member function to set the stored parameters of an existing distribution, and to operator() to be used in place of the stored parameters.

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

piecewise_linear_distribution Class