.. index:: pair: class; gpr::PriorLogNormal .. _doxid-classgpr_1_1_prior_log_normal: class gpr::PriorLogNormal ========================= .. toctree:: :hidden: Overview ~~~~~~~~ Log-normal prior. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class PriorLogNormal: public :ref:`gpr::PriorBase` { public: // construction :target:`PriorLogNormal`(); virtual :target:`~PriorLogNormal`(); // methods virtual double :target:`calculateLogPrior`(const :ref:`FieldMatrixd`& x); virtual :ref:`FieldMatrixd` :target:`calculateLogPriorGradient`(const :ref:`FieldMatrixd`& x); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods virtual double :ref:`calculateLogPrior`(const :ref:`FieldMatrixd`&); virtual :ref:`FieldMatrixd` :ref:`calculateLogPriorGradient`(const :ref:`FieldMatrixd`& x); void :ref:`clear`(); double :ref:`getMu`() const; double :ref:`getS2`() const; double :ref:`getNu`() const; void :ref:`setMu`(const double value); void :ref:`setS2`(const double value); void :ref:`setNu`(const double value); void :ref:`setParameters`(const :ref:`PriorBase`& other); .. _details-classgpr_1_1_prior_log_normal: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ 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)