Share via


exponential_distribution Class

Generates an exponential distribution.

template<class RealType = double>
    class exponential_distribution {
public:
    typedef RealType input_type;
    typedef RealType result_type;
    explicit exponential_distribution(const result_type& lambda0 = result_type(1));
    result_type lambda() const;
    void reset();
    template<class Engine>
        result_type operator()(Engine& eng);
private:
    result_type stored_lambda;   // exposition only
    };

Parameters

  • RealType
    The floating-point engine value type.

Remarks

The template class decribes a distribution that produces values of a user-specified floating-point type with an exponential distribution.

Requirements

Header: <random>

Namespace: std::tr1

See Also

Reference

<random>

bernoulli_distribution Class

binomial_distribution Class

gamma_distribution Class

geometric_distribution Class

normal_distribution Class

poisson_distribution Class

uniform_int Class

uniform_real Class