Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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