#include <distribution.h>
|
| | UniformDistribution (double a, double b) |
| |
| | UniformDistribution ()=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 | setLowerBound (double a) |
| |
| void | setUpperBound (double b) |
| |
| 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 | lowerBound_ {0.0} |
| | Lower bound parameter.
|
| |
| double | upperBound_ {1.0} |
| | Upper bound parameter.
|
| |
| std::uniform_real_distribution< double > | distU_ {0., 1.} |
| | Uniform distribution generator helper.
|
| |
◆ UniformDistribution() [1/2]
| cmp::distribution::UniformDistribution::UniformDistribution |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
inline |
◆ UniformDistribution() [2/2]
| cmp::distribution::UniformDistribution::UniformDistribution |
( |
| ) |
|
|
default |
◆ CDF()
| double cmp::distribution::UniformDistribution::CDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ ddLogPDF()
| double cmp::distribution::UniformDistribution::ddLogPDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ dLogPDF()
| double cmp::distribution::UniformDistribution::dLogPDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ logPDF()
| double cmp::distribution::UniformDistribution::logPDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ quantile()
| double cmp::distribution::UniformDistribution::quantile |
( |
const double & |
p | ) |
const |
|
inline |
◆ sample()
| double cmp::distribution::UniformDistribution::sample |
( |
std::default_random_engine & |
rng | ) |
|
|
inline |
◆ setLowerBound()
| void cmp::distribution::UniformDistribution::setLowerBound |
( |
double |
a | ) |
|
|
inline |
◆ setUpperBound()
| void cmp::distribution::UniformDistribution::setUpperBound |
( |
double |
b | ) |
|
|
inline |
◆ distU_
| std::uniform_real_distribution<double> cmp::distribution::UniformDistribution::distU_ {0., 1.} |
|
private |
Uniform distribution generator helper.
◆ lowerBound_
| double cmp::distribution::UniformDistribution::lowerBound_ {0.0} |
|
private |
◆ upperBound_
| double cmp::distribution::UniformDistribution::upperBound_ {1.0} |
|
private |
The documentation for this class was generated from the following file: