|
STK++ 0.9.13
|
Implementation of the SEM algorithm. More...
#include <STK_MixtureAlgo.h>

Public Member Functions | |
| SEMAlgo () | |
| default constructor | |
| SEMAlgo (SEMAlgo const &algo) | |
| Copy constructor. | |
| virtual | ~SEMAlgo () |
| destructor | |
| virtual SEMAlgo * | clone () const |
| clone pattern | |
| virtual bool | run () |
| run the algorithm on the model calling sStep, mStep and eStep of the model until the maximal number of iteration is reached. | |
Public Member Functions inherited from STK::IMixtureAlgo | |
| virtual | ~IMixtureAlgo () |
| destructor | |
| int | nbIterMax () const |
| int | epsilon () const |
| Real | threshold () const |
| void | setModel (IMixtureComposer *p_model) |
| set model | |
| void | setNbIterMax (int nbIterMax) |
| set maximal number of iterations | |
| void | setEpsilon (Real epsilon) |
| set tolerance value | |
| void | setThreshold (Real threshold) |
| set threshold value | |
Public Member Functions inherited from STK::IRunnerBase | |
| String const & | error () const |
| get the last error message. | |
Additional Inherited Members | |
Protected Member Functions inherited from STK::IMixtureAlgo | |
| IMixtureAlgo () | |
| default constructor | |
| IMixtureAlgo (IMixtureAlgo const &algo) | |
| 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::IMixtureAlgo | |
| IMixtureComposer * | p_model_ |
| pointer on the mixture model | |
| int | nbIterMax_ |
| number of iterations of the algorithm | |
| Real | epsilon_ |
| tolerance of the algorithm. | |
| Real | threshold_ |
| Minimal number of individuals. | |
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 | |
Implementation of the SEM algorithm.
The SEM algorithm calls alternatively the steps:
Definition at line 111 of file STK_MixtureAlgo.h.
|
inline |
default constructor
Definition at line 115 of file STK_MixtureAlgo.h.
Referenced by clone().
Copy constructor.
| algo | the algorithm to copy |
Definition at line 118 of file STK_MixtureAlgo.h.
|
inlinevirtual |
|
virtual |
run the algorithm on the model calling sStep, mStep and eStep of the model until the maximal number of iteration is reached.
true if no error occur, false otherwise. Implements STK::IRunnerBase.
Definition at line 161 of file STK_MixtureAlgo.cpp.
References _T, STK::IRunnerBase::error(), STK::IMixtureComposer::eStep(), STK::Clust::exceptionToString(), STK::IStatModelBase::lnLikelihood(), STK::IRunnerBase::msg_error_, STK::IMixtureAlgo::nbIterMax_, STK::IMixtureAlgo::p_model_, STK::IMixtureComposer::paramUpdateStep(), STK::IMixtureComposer::pStep(), STK::IMixtureStatModel::releaseIntermediateResults(), run(), STK::IMixtureStatModel::samplingStep(), STK::IMixtureStatModel::setParametersStep(), STK::IMixtureComposer::sStep(), stk_cout, STKERROR_1ARG, STK::IMixtureStatModel::storeIntermediateResults(), and STK::IMixtureAlgo::threshold_.
Referenced by run().