Log-normal prior. More...
#include <gpr/prior/PriorLogNormal.h>
Public Member Functions | |
| PriorLogNormal () | |
| virtual | ~PriorLogNormal () |
| double | calculateLogPrior (const FieldMatrixd &x) override |
| FieldMatrixd | calculateLogPriorGradient (const FieldMatrixd &x) override |
| Public Member Functions inherited from gpr::PriorBase | |
| PriorBase () | |
| void | clear () |
| double | getMu () const |
| double | getS2 () const |
| double | getNu () const |
| void | setMu (const double value) |
| void | setS2 (const double value) |
| void | setNu (const double value) |
| void | setParameters (const PriorBase &other) |
Additional Inherited Members | |
| Protected Attributes inherited from gpr::PriorBase | |
| double | mu |
| double | s2 |
| double | nu |
Log-normal prior.
Creates a log-normal prior where the log of the variable is normally distributed with mean mu and variance s2. The variable x must be positive.
log p(x) = -0.5*log(2*pi*s2) - log(x) - (log(x) - mu)^2 / (2*s2)
Definition at line 23 of file PriorLogNormal.h.
|
inline |
Definition at line 25 of file PriorLogNormal.h.
|
inlinevirtual |
Definition at line 26 of file PriorLogNormal.h.
|
overridevirtual |
Reimplemented from gpr::PriorBase.
Definition at line 15 of file PriorLogNormal.cpp.
|
overridevirtual |
Reimplemented from gpr::PriorBase.
Definition at line 38 of file PriorLogNormal.cpp.