STK++ 0.9.13
STK::ICLMixtureCriterion Class Reference

Derived class of IMixtureCriterion for computing the ICL Criterion The ICL criteria of a model M is a penalization of the likelihood given by the formula. More...

#include <STK_MixtureCriterion.h>

Inheritance diagram for STK::ICLMixtureCriterion:
Inheritance graph

Public Member Functions

 ICLMixtureCriterion ()
 Default Constructor.
 
 ICLMixtureCriterion (IMixtureStatModel const *p_composer)
 Constructor.
 
 ICLMixtureCriterion (ICLMixtureCriterion const &criterion)
 copy Constructor.
 
virtual ~ICLMixtureCriterion ()
 virtual destructor.
 
ICLMixtureCriterionclone () const
 clone pattern
 
virtual bool run ()
 implementation of the virtual method run
 
- Public Member Functions inherited from STK::IMixtureCriterion
virtual ~IMixtureCriterion ()
 Destructor.
 
Real constvalue () const
 
void setModel (IMixtureStatModel const *p_composer)
 
- Public Member Functions inherited from STK::IRunnerBase
String consterror () const
 get the last error message.
 

Additional Inherited Members

- Protected Member Functions inherited from STK::IMixtureCriterion
 IMixtureCriterion ()
 Default Constructor.
 
 IMixtureCriterion (IMixtureStatModel const *p_composer)
 Constructor.
 
 IMixtureCriterion (IMixtureCriterion const &criterion)
 copy Constructor.
 
- Protected Member Functions inherited from STK::IRunnerBase
 IRunnerBase ()
 default constructor
 
 IRunnerBase (IRunnerBase const &runner)
 copy constructor
 
virtual ~IRunnerBase ()
 destructor
 
virtual void update ()
 update the runner.
 
- Protected Attributes inherited from STK::IMixtureCriterion
IMixtureStatModel constp_composer_
 The current statistical model to use.
 
Real value_
 Computed value of the criterion.
 
- Protected Attributes inherited from STK::IRunnerBase
String msg_error_
 String with the last error message.
 
bool hasRun_
 true if run has been used, false otherwise
 

Detailed Description

Derived class of IMixtureCriterion for computing the ICL Criterion The ICL criteria of a model M is a penalization of the likelihood given by the formula.

\[
-2 \ln{p(x|M)} \approx \mathrm{ICL} = { -2 \ln{L} + D \log(n) - 2 \sum_i\sum_k t_{ik}\log(t_{ik}) }
\]

where $ L $ represents the likelihood of the observations and $ D $ the number of free parameters of the model.

Definition at line 122 of file STK_MixtureCriterion.h.

Constructor & Destructor Documentation

◆ ICLMixtureCriterion() [1/3]

STK::ICLMixtureCriterion::ICLMixtureCriterion ( )
inline

Default Constructor.

Definition at line 126 of file STK_MixtureCriterion.h.

IMixtureCriterion()
Default Constructor.

Referenced by clone().

◆ ICLMixtureCriterion() [2/3]

STK::ICLMixtureCriterion::ICLMixtureCriterion ( IMixtureStatModel const p_composer)
inline

Constructor.

Parameters
p_composera pointer on the current composer

Definition at line 130 of file STK_MixtureCriterion.h.

131 : IMixtureCriterion(p_composer) {}

◆ ICLMixtureCriterion() [3/3]

STK::ICLMixtureCriterion::ICLMixtureCriterion ( ICLMixtureCriterion const criterion)
inline

copy Constructor.

Parameters
criterionthe criterion to copy

Definition at line 135 of file STK_MixtureCriterion.h.

136 : IMixtureCriterion(criterion) {}

◆ ~ICLMixtureCriterion()

virtual STK::ICLMixtureCriterion::~ICLMixtureCriterion ( )
inlinevirtual

virtual destructor.

Definition at line 138 of file STK_MixtureCriterion.h.

138{}

Member Function Documentation

◆ clone()

ICLMixtureCriterion * STK::ICLMixtureCriterion::clone ( ) const
inline

clone pattern

Definition at line 140 of file STK_MixtureCriterion.h.

140{ return new ICLMixtureCriterion(*this);}
ICLMixtureCriterion()
Default Constructor.

References ICLMixtureCriterion().

◆ run()

bool STK::ICLMixtureCriterion::run ( )
virtual

implementation of the virtual method run

Implements STK::IRunnerBase.

Definition at line 63 of file STK_MixtureCriterion.cpp.

64{
65 if (!p_composer_)
67 return false;
68 }
70 return true;
71}
#define STKERROR_NO_ARG(Where, Error)
Definition STK_Macros.h:49
virtual bool run()
implementation of the virtual method run
Real value_
Computed value of the criterion.
IMixtureStatModel const * p_composer_
The current statistical model to use.
String msg_error_
String with the last error message.
Definition STK_IRunner.h:96

References STK::IMixtureStatModel::computeICL(), STK::IRunnerBase::msg_error_, STK::IMixtureCriterion::p_composer_, run(), STKERROR_NO_ARG, and STK::IMixtureCriterion::value_.

Referenced by run().


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