![]() |
imate
C++/CUDA Reference
|
Defines the log-normal probability density function. More...
#include <log_gaussian.h>


Public Member Functions | |
| LogGaussian (double mu_, double sigma_) | |
Sets the default for the parameter mu to 0.0 and for the parameter sigma to 1.0. | |
| virtual float | function (const float lambda_) const |
| virtual double | function (const double lambda_) const |
| virtual long double | function (const long double lambda_) const |
Public Member Functions inherited from Function | |
| virtual | ~Function () |
| Default virtual destructor. | |
Public Attributes | |
| double | mu |
| double | sigma |
Defines the log-normal probability density function.
\[ f: \lambda \mapsto \frac{1}{\lambda \sigma \sqrt{2 \pi}} e^{-\frac{1}{2} x^2}, \]
where
\[ x = \frac{\log(\lambda) - \log(\mu)}{\sigma}, \]
and \( \mu \) and \( \sigma \) parameters are the mean and standard deviation of the Gaussian function and should be set by this->mu and this->sigma members, respectively.
The matrix function \( f: \mathbb{R}^{n \times n} \to \mathbb{R}^{n \times n} \) is used in
\[ \mathrm{trace} \left( f(\mathbf{A}) \right). \]
However, instead of a matrix function, the equivalent scalar function \( f: \mathbb{R} \to \mathbb{R} \) is defiend which acts on the eigenvalues of the matrix.
Definition at line 51 of file log_gaussian.h.
| LogGaussian::LogGaussian | ( | double | mu_, |
| double | sigma_ | ||
| ) |
Sets the default for the parameter mu to 0.0 and for the parameter sigma to 1.0.
Definition at line 34 of file log_gaussian.cpp.
|
virtual |
| [in] | lambda_ | Eigenvalue (or singular value) of matrix. |
Implements Function.
Definition at line 66 of file log_gaussian.cpp.
|
virtual |
| [in] | lambda_ | Eigenvalue (or singular value) of matrix. |
Implements Function.
Definition at line 48 of file log_gaussian.cpp.
|
virtual |
| [in] | lambda_ | Eigenvalue (or singular value) of matrix. |
Implements Function.
Definition at line 82 of file log_gaussian.cpp.
| double LogGaussian::mu |
Definition at line 58 of file log_gaussian.h.
Referenced by function(), function(), function(), and LogGaussian().
| double LogGaussian::sigma |
Definition at line 59 of file log_gaussian.h.
Referenced by function(), function(), function(), and LogGaussian().