STK++ 0.9.13
STK::ModelGamma_aj_bj< Data_, WColVector_ >::dloglikelihood Class Reference

#include <STK_ModelGamma_aj_bj.h>

Inheritance diagram for STK::ModelGamma_aj_bj< Data_, WColVector_ >::dloglikelihood:
Inheritance graph

Public Member Functions

 dloglikelihood (Real const &mean, Real const &meanLog)
 
Real fImpl (Real a) const
 
Real xminImpl () const
 
- Public Member Functions inherited from STK::IFunction< dloglikelihood >
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 delta_
 

Additional Inherited Members

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

Detailed Description

template<class Data_, class WColVector_>
class STK::ModelGamma_aj_bj< Data_, WColVector_ >::dloglikelihood

Definition at line 145 of file STK_ModelGamma_aj_bj.h.

Constructor & Destructor Documentation

◆ dloglikelihood()

template<class Data_ , class WColVector_ >
STK::ModelGamma_aj_bj< Data_, WColVector_ >::dloglikelihood::dloglikelihood ( Real const mean,
Real const meanLog 
)
inline

Definition at line 148 of file STK_ModelGamma_aj_bj.h.

149 : delta_(meanLog - Real(std::log(mean))) {}
CPointX const & meanLog() const
vector of the mean log of the observations
CPointX const & mean() const
double Real
STK fundamental type of Real values.

Member Function Documentation

◆ fImpl()

template<class Data_ , class WColVector_ >
Real STK::ModelGamma_aj_bj< Data_, WColVector_ >::dloglikelihood::fImpl ( Real  a) const
inline
Returns
the value of the function at a
Parameters
aa positive real value

Definition at line 153 of file STK_ModelGamma_aj_bj.h.

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

References STK::ModelGamma_aj_bj< Data_, WColVector_ >::dloglikelihood::delta_, and STK::Funct::psi_raw().

◆ xminImpl()

template<class Data_ , class WColVector_ >
Real STK::ModelGamma_aj_bj< Data_, WColVector_ >::dloglikelihood::xminImpl ( ) const
inline
Returns
the minimal value of the function at x

Definition at line 156 of file STK_ModelGamma_aj_bj.h.

156{ return 0;}

Member Data Documentation

◆ delta_


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