Gamma distribution.
More...
#include <prrng.h>
|
| gamma_distribution (double k=1, 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).
|
|
Gamma distribution.
Only available when compiled with PRRNG_USE_BOOST.
References:
Definition at line 1343 of file prrng.h.
◆ gamma_distribution()
prrng::gamma_distribution::gamma_distribution |
( |
double |
k = 1 , |
|
|
double |
scale = 1 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
k | Shape parameter \( \k \). |
scale | Scale parameter \( \theta \). |
Definition at line 1351 of file prrng.h.
◆ cdf()
template<class T >
T prrng::gamma_distribution::cdf |
( |
const T & |
x | ) |
|
|
inline |
Cumulative density function.
Only available when compiled with PRRNG_USE_BOOST (e.g. using the CMake target prrng::use_boost
).
- Parameters
-
- Returns
- Cumulative density for each
x
.
Definition at line 1390 of file prrng.h.
◆ pdf()
template<class T >
T prrng::gamma_distribution::pdf |
( |
const T & |
x | ) |
|
|
inline |
Probability density function.
Only available when compiled with PRRNG_USE_BOOST (e.g. using the CMake target prrng::use_boost
).
- Parameters
-
- Returns
- Probability density for each
x
.
Definition at line 1366 of file prrng.h.
◆ quantile()
template<class T >
T prrng::gamma_distribution::quantile |
( |
const T & |
p | ) |
|
|
inline |
Quantile (the inverse of the cumulative density function).
Only available when compiled with PRRNG_USE_BOOST (e.g. using the CMake target prrng::use_boost
).
- Parameters
-
- Returns
- Quantile for each
p
.
Definition at line 1413 of file prrng.h.
The documentation for this class was generated from the following file: