exponential_distribution Class
Generuje exponenciálního rozdělení.
template<class RealType = double>
class exponential_distribution {
public:
typedef RealType input_type;
typedef RealType result_type;
struct param_type;
explicit exponential_distribution(
result_type lambda0 = result_type(1.0));
explicit exponential_distribution(const param_type& par0);
result_type lambda() const;
param_type param() const;
void param(const param_type& par0);
result_type min() const;
result_type max() const;
void reset();
template<class Engine>
result_type operator()(Engine& eng);
template<class Engine>
result_type operator()(Engine& eng,
const param_type& par0);
private:
result_type stored_lambda; // exposition only
};
Parametry
- RealType
Typ hodnoty s plovoucí desetinnou čárkou motoru.
Poznámky
Popisuje šablony třídy rozdělení, který vytváří hodnoty zadané uživatelem s plovoucí desetinnou čárkou typ s exponenciální rozdělení.
Požadavky
Záhlaví: <random>
Obor názvů: std
Viz také
Referenční dokumentace
exponential_distribution::exponential_distribution
exponential_distribution::lambda
exponential_distribution::operator()