libstdc++
std::exponential_distribution Class Reference

List of all members.

Classes

Public Types

Public Member Functions


Detailed Description

An exponential continuous distribution for random numbers.

The formula for the exponential probability density function is $p(x|\lambda) = \lambda e^{-\lambda x}$.

Distribution Statistics
Mean$\frac{1}{\lambda}$
Median$\frac{\ln 2}{\lambda}$
Mode$zero$
Range$[0, \infty]$
Standard Deviation$\frac{1}{\lambda}$

Member Typedef Documentation

The type of the range of the distribution.

Definition at line 4147 of file random.h.


Constructor & Destructor Documentation

std::exponential_distribution::exponential_distribution ( const result_type __lambda = result_type(1)) [inline, explicit]

Constructs an exponential distribution with inverse scale parameter $\lambda$.

Definition at line 4178 of file random.h.


Member Function Documentation

_RealType std::exponential_distribution::lambda ( ) const [inline]

Returns the inverse scale parameter of the distribution.

Definition at line 4199 of file random.h.

result_type std::exponential_distribution::max ( ) const [inline]

Returns the least upper bound value of the distribution.

Definition at line 4228 of file random.h.

result_type std::exponential_distribution::min ( ) const [inline]

Returns the greatest lower bound value of the distribution.

Definition at line 4221 of file random.h.

template<typename _UniformRandomNumberGenerator >
result_type std::exponential_distribution::operator() ( _UniformRandomNumberGenerator &  __urng) [inline]

Generating functions.

Definition at line 4236 of file random.h.

References operator()(), and param().

Referenced by operator()().

param_type std::exponential_distribution::param ( ) const [inline]

Returns the parameter set of the distribution.

Definition at line 4206 of file random.h.

Referenced by operator()(), std::operator==(), and std::operator>>().

void std::exponential_distribution::param ( const param_type __param) [inline]

Sets the parameter set of the distribution.

Parameters:
__paramThe new parameter set of the distribution.

Definition at line 4214 of file random.h.

void std::exponential_distribution::reset ( ) [inline]

Resets the distribution state.

Has no effect on exponential distributions.

Definition at line 4193 of file random.h.


The documentation for this class was generated from the following file: