Compartir a través de


discrete_distribution::param_type

Almacena todos los parámetros de distribución.

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;
    };

Comentarios

Este paquete de parámetro se puede pasar a operador () para generar el valor devuelto.

Requisitos

encabezado: <aleatorio>

espacio de nombres: std

Vea también

Referencia

<random>

discrete_distribution Class