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

Public Member Functions | |
| SemiSEMAlgo () | |
| default constructor | |
| SemiSEMAlgo (SemiSEMAlgo const &algo) | |
| Copy constructor. | |
| virtual | ~SemiSEMAlgo () |
| destructor | |
| virtual SemiSEMAlgo * | 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 SemiSEM algorithm.
The SemiSEM algorithm calls alternatively the steps:
Definition at line 140 of file STK_MixtureAlgo.h.
|
inline |
default constructor
Definition at line 144 of file STK_MixtureAlgo.h.
Referenced by clone().
|
inline |
Copy constructor.
| algo | the algorithm to copy |
Definition at line 147 of file STK_MixtureAlgo.h.
|
inlinevirtual |
|
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 231 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_cout, STKERROR_1ARG, STK::IMixtureStatModel::storeIntermediateResults(), and STK::IMixtureAlgo::threshold_.
Referenced by run().