CMP++: Uncertainty Quantification & Bayesian Calibration
Loading...
Searching...
No Matches
cmp::distribution::LogNormalDistribution Class Reference

#include <distribution.h>

Inheritance diagram for cmp::distribution::LogNormalDistribution:
Collaboration diagram for cmp::distribution::LogNormalDistribution:

Public Member Functions

 LogNormalDistribution (double mu, double sigma)
 
 LogNormalDistribution ()=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 mu)
 
void setStd (double sigma)
 
- Public Member Functions inherited from cmp::distribution::UnivariateDistribution< LogNormalDistribution >
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.
 

Private Attributes

double mean_ {0.0}
 Log-mean parameter.
 
double std_ {1.0}
 Log-standard deviation parameter.
 
std::normal_distribution< double > distN_
 Normal distribution generator helper.
 

Constructor & Destructor Documentation

◆ LogNormalDistribution() [1/2]

cmp::distribution::LogNormalDistribution::LogNormalDistribution ( double  mu,
double  sigma 
)
inline

◆ LogNormalDistribution() [2/2]

cmp::distribution::LogNormalDistribution::LogNormalDistribution ( )
default

Member Function Documentation

◆ CDF()

double cmp::distribution::LogNormalDistribution::CDF ( const double &  x) const
inline

◆ ddLogPDF()

double cmp::distribution::LogNormalDistribution::ddLogPDF ( const double &  x) const
inline

◆ dLogPDF()

double cmp::distribution::LogNormalDistribution::dLogPDF ( const double &  x) const
inline

◆ logPDF()

double cmp::distribution::LogNormalDistribution::logPDF ( const double &  x) const
inline

◆ quantile()

double cmp::distribution::LogNormalDistribution::quantile ( const double &  p) const
inline

◆ sample()

double cmp::distribution::LogNormalDistribution::sample ( std::default_random_engine &  rng)
inline

◆ setMean()

void cmp::distribution::LogNormalDistribution::setMean ( double  mu)
inline

◆ setStd()

void cmp::distribution::LogNormalDistribution::setStd ( double  sigma)
inline

Member Data Documentation

◆ distN_

std::normal_distribution<double> cmp::distribution::LogNormalDistribution::distN_
private

Normal distribution generator helper.

◆ mean_

double cmp::distribution::LogNormalDistribution::mean_ {0.0}
private

Log-mean parameter.

◆ std_

double cmp::distribution::LogNormalDistribution::std_ {1.0}
private

Log-standard deviation parameter.


The documentation for this class was generated from the following file: