Exponential distribution.
More...
#include <prrng.h>
|
| exponential_distribution (double scale=1) |
| Constructor.
|
|
template<class T > |
T | pdf (const T &x) |
| Probability density function.
|
|
template<class T > |
T | cdf (const T &x) |
| Cumulative density function.
|
|
template<class T > |
T | quantile (const T &p) |
| Quantile (the inverse of the cumulative density function).
|
|
Exponential distribution.
References:
Definition at line 1217 of file prrng.h.
◆ exponential_distribution()
prrng::exponential_distribution::exponential_distribution |
( |
double |
scale = 1 | ) |
|
|
inline |
Constructor.
- Parameters
-
scale | Scale (inverse rate). |
Definition at line 1224 of file prrng.h.
◆ cdf()
template<class T >
T prrng::exponential_distribution::cdf |
( |
const T & |
x | ) |
|
|
inline |
Cumulative density function.
- Parameters
-
- 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
-
- 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
-
- Returns
- Quantile for each
p
.
Definition at line 1262 of file prrng.h.
The documentation for this class was generated from the following file: