STK++ 0.9.13
STK::hidden::invPsiMLog Class Reference

Functor computing the derivative of the lnLikelihood of a gamma_ajk_bjk model. More...

#include <STK_GammaBase.h>

Inheritance diagram for STK::hidden::invPsiMLog:
Inheritance graph

Public Member Functions

 invPsiMLog (Real const &y)
 
Real fImpl (Real const &a) const
 
Real xminImpl () const
 
- Public Member Functions inherited from STK::IFunction< invPsiMLog >
Real operator() (Real const &x) const
 
Real xmin () const
 
Real xmax () const
 
Real xminImpl () const
 
Real xmaxImpl () const
 
- Public Member Functions inherited from STK::IRecursiveTemplate< Derived >
Derived & asDerived ()
 static cast : return a reference of this with a cast to the derived class.
 
Derived constasDerived () const
 static cast : return a const reference of this with a cast to the derived class.
 
Derived * asPtrDerived ()
 static cast : return a ptr on a Derived of this with a cast to the derived class.
 
Derived constasPtrDerived () const
 static cast : return a ptr on a constant Derived of this with a cast to the derived class.
 
Derived * clone () const
 create a leaf using the copy constructor of the Derived class.
 
Derived * clone (bool isRef) const
 create a leaf using the copy constructor of the Derived class and a flag determining if the clone is a reference or not.
 

Private Attributes

Real y_
 

Additional Inherited Members

- Protected Member Functions inherited from STK::IFunction< invPsiMLog >
 IFunction ()
 Default Constructor.
 
 ~IFunction ()
 destructor.
 
- Protected Member Functions inherited from STK::IRecursiveTemplate< Derived >
 IRecursiveTemplate ()
 constructor.
 
 ~IRecursiveTemplate ()
 destructor.
 

Detailed Description

Functor computing the derivative of the lnLikelihood of a gamma_ajk_bjk model.

Definition at line 55 of file STK_GammaBase.h.

Constructor & Destructor Documentation

◆ invPsiMLog()

STK::hidden::invPsiMLog::invPsiMLog ( Real const y)
inline

Definition at line 58 of file STK_GammaBase.h.

Member Function Documentation

◆ fImpl()

Real STK::hidden::invPsiMLog::fImpl ( Real const a) const
inline
Returns
the value of the function at a
Parameters
aa positive real value

Definition at line 62 of file STK_GammaBase.h.

63 { return (y_ + std::log(a) - Funct::psi_raw(a));}
Real psi_raw(Real x)
Compute the psi function.

References STK::Funct::psi_raw(), and y_.

◆ xminImpl()

Real STK::hidden::invPsiMLog::xminImpl ( ) const
inline
Returns
the minimal value of the function at x

Definition at line 65 of file STK_GammaBase.h.

65{ return 0;}

Member Data Documentation

◆ y_

Real STK::hidden::invPsiMLog::y_
private

Definition at line 68 of file STK_GammaBase.h.

Referenced by fImpl().


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