#include <distribution.h>
|
| | NormalDistribution (double mean, double sd) |
| |
| | NormalDistribution ()=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 | setMean (double mean) |
| |
| void | setStd (double std) |
| |
| double | mean () const |
| |
| double | std () 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.
|
| |
|
| static double | logPDF (const double &res, const double &std) |
| |
|
| double | mean_ {0.0} |
| | Mean parameter.
|
| |
| double | std_ {1.0} |
| | Standard deviation parameter.
|
| |
| std::normal_distribution< double > | distN_ |
| | Normal distribution generator helper.
|
| |
◆ NormalDistribution() [1/2]
| cmp::distribution::NormalDistribution::NormalDistribution |
( |
double |
mean, |
|
|
double |
sd |
|
) |
| |
|
inline |
◆ NormalDistribution() [2/2]
| cmp::distribution::NormalDistribution::NormalDistribution |
( |
| ) |
|
|
default |
◆ CDF()
| double cmp::distribution::NormalDistribution::CDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ ddLogPDF()
| double cmp::distribution::NormalDistribution::ddLogPDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ dLogPDF()
| double cmp::distribution::NormalDistribution::dLogPDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ logPDF() [1/2]
| static double cmp::distribution::NormalDistribution::logPDF |
( |
const double & |
res, |
|
|
const double & |
std |
|
) |
| |
|
inlinestatic |
◆ logPDF() [2/2]
| double cmp::distribution::NormalDistribution::logPDF |
( |
const double & |
x | ) |
const |
|
inline |
◆ mean()
| double cmp::distribution::NormalDistribution::mean |
( |
| ) |
const |
|
inline |
◆ quantile()
| double cmp::distribution::NormalDistribution::quantile |
( |
const double & |
p | ) |
const |
|
inline |
◆ sample()
| double cmp::distribution::NormalDistribution::sample |
( |
std::default_random_engine & |
rng | ) |
|
|
inline |
◆ setMean()
| void cmp::distribution::NormalDistribution::setMean |
( |
double |
mean | ) |
|
|
inline |
◆ setStd()
| void cmp::distribution::NormalDistribution::setStd |
( |
double |
std | ) |
|
|
inline |
◆ std()
| double cmp::distribution::NormalDistribution::std |
( |
| ) |
const |
|
inline |
◆ distN_
| std::normal_distribution<double> cmp::distribution::NormalDistribution::distN_ |
|
private |
Normal distribution generator helper.
◆ mean_
| double cmp::distribution::NormalDistribution::mean_ {0.0} |
|
private |
◆ std_
| double cmp::distribution::NormalDistribution::std_ {1.0} |
|
private |
Standard deviation parameter.
The documentation for this class was generated from the following file: