#include <distribution.h>
|
| | GammaDistribution (double alpha, double beta) |
| |
| | GammaDistribution ()=default |
| |
| double | logPDF (const double &x) const |
| |
| double | dLogPDF (const double &x) const |
| |
| double | ddLogPDF (const double &x) const |
| |
| double | CDF (const double &x) const |
| |
| double | quantile (const double &p) const |
| |
| double | sample (std::default_random_engine &rng) |
| |
| void | setAlpha (double alpha) |
| |
| void | setBeta (double beta) |
| |
| double | getAlpha () const |
| |
| double | getBeta () const |
| |
| double | logPDF (const double &x) const |
| | Computes the log probability density function (log-PDF) of the distribution.
|
| |
| double | dLogPDF (const double &x) const |
| | Computes the first derivative of the log-PDF.
|
| |
| double | ddLogPDF (const double &x) const |
| | Computes the second derivative of the log-PDF.
|
| |
| double | CDF (const double &x) const |
| | Computes the cumulative distribution function (CDF).
|
| |
| double | quantile (const double &p) const |
| | Computes the quantile function (inverse CDF).
|
| |
| double | sample (std::default_random_engine &rng) |
| | Draws a single pseudo-random sample from the distribution.
|
| |
|
| double | alpha_ |
| | Shape parameter (often denoted as k).
|
| |
| double | beta_ |
| | Rate parameter (often denoted as theta = 1/beta).
|
| |
| std::gamma_distribution< double > | distGamma_ |
| | Gamma distribution helper for sampling.
|
| |
◆ GammaDistribution() [1/2]
| cmp::distribution::GammaDistribution::GammaDistribution |
( |
double |
alpha, |
|
|
double |
beta |
|
) |
| |
|
inline |
◆ GammaDistribution() [2/2]
| cmp::distribution::GammaDistribution::GammaDistribution |
( |
| ) |
|
|
default |
◆ CDF()
| double cmp::distribution::GammaDistribution::CDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ ddLogPDF()
| double cmp::distribution::GammaDistribution::ddLogPDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ dLogPDF()
| double cmp::distribution::GammaDistribution::dLogPDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ getAlpha()
| double cmp::distribution::GammaDistribution::getAlpha |
( |
| ) |
const |
|
inline |
◆ getBeta()
| double cmp::distribution::GammaDistribution::getBeta |
( |
| ) |
const |
|
inline |
◆ logPDF()
| double cmp::distribution::GammaDistribution::logPDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ quantile()
| double cmp::distribution::GammaDistribution::quantile |
( |
const double & |
p | ) |
const |
|
inline |
◆ sample()
| double cmp::distribution::GammaDistribution::sample |
( |
std::default_random_engine & |
rng | ) |
|
|
inline |
◆ setAlpha()
| void cmp::distribution::GammaDistribution::setAlpha |
( |
double |
alpha | ) |
|
|
inline |
◆ setBeta()
| void cmp::distribution::GammaDistribution::setBeta |
( |
double |
beta | ) |
|
|
inline |
◆ alpha_
| double cmp::distribution::GammaDistribution::alpha_ |
|
private |
Shape parameter (often denoted as k).
◆ beta_
| double cmp::distribution::GammaDistribution::beta_ |
|
private |
Rate parameter (often denoted as theta = 1/beta).
◆ distGamma_
| std::gamma_distribution<double> cmp::distribution::GammaDistribution::distGamma_ |
|
private |
Gamma distribution helper for sampling.
The documentation for this class was generated from the following file: