Sdílet prostřednictvím


bernoulli_distribution::param_type

Uložení parametrů rozdělení.

struct param_type {
    typedef bernoulli_distribution distribution_type;
    param_type(double p0 = 0.5);
    double p() const;
    bool operator==(const param_type& right) const;
    bool operator!=(const param_type& right) const;
    };

Poznámky

Tento balíček parametr předán operator() ke generování vrácenou hodnotu.

Požadavky

Záhlaví: <random>

Obor názvů: std

Viz také

Referenční dokumentace

<random>

bernoulli_distribution Class