prrng 1.12.1
Loading...
Searching...
No Matches
prrng::exponential_distribution Class Reference

Exponential distribution. More...

#include <prrng.h>

Public Member Functions

 exponential_distribution (double scale=1)
 Constructor.
 
template<class T >
pdf (const T &x)
 Probability density function.
 
template<class T >
cdf (const T &x)
 Cumulative density function.
 
template<class T >
quantile (const T &p)
 Quantile (the inverse of the cumulative density function).
 

Detailed Description

Exponential distribution.

References:

Definition at line 1217 of file prrng.h.

Constructor & Destructor Documentation

◆ exponential_distribution()

prrng::exponential_distribution::exponential_distribution ( double  scale = 1)
inline

Constructor.

Parameters
scaleScale (inverse rate).

Definition at line 1224 of file prrng.h.

Member Function Documentation

◆ cdf()

template<class T >
T prrng::exponential_distribution::cdf ( const T &  x)
inline

Cumulative density function.

Parameters
xCoordinates.
Returns
Cumulative density for each x.

Definition at line 1249 of file prrng.h.

◆ pdf()

template<class T >
T prrng::exponential_distribution::pdf ( const T &  x)
inline

Probability density function.

Parameters
xCoordinates.
Returns
Probability density for each x.

Definition at line 1236 of file prrng.h.

◆ quantile()

template<class T >
T prrng::exponential_distribution::quantile ( const T &  p)
inline

Quantile (the inverse of the cumulative density function).

Parameters
pProbability [0, 1].
Returns
Quantile for each p.

Definition at line 1262 of file prrng.h.


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