|
STK++ 0.9.13
|
Implementation of the SimulAlgo learning algorithm. More...
#include <STK_MixtureAlgoLearn.h>

Public Member Functions | |
| SimulAlgo () | |
| default constructor | |
| SimulAlgo (SimulAlgo const &algo) | |
| Copy constructor. | |
| virtual | ~SimulAlgo () |
| destructor | |
| virtual SimulAlgo * | 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::IMixtureAlgoLearn | |
| virtual | ~IMixtureAlgoLearn () |
| destructor | |
| int | nbIterMax () const |
| int | epsilon () const |
| void | setModel (IMixtureLearner *p_model) |
| set model | |
| void | setNbIterMax (int nbIterMax) |
| set maximal number of iterations | |
| void | setEpsilon (Real epsilon) |
| set tolerance 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::IMixtureAlgoLearn | |
| IMixtureAlgoLearn () | |
| default constructor | |
| IMixtureAlgoLearn (IMixtureAlgoLearn 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::IMixtureAlgoLearn | |
| IMixtureLearner * | p_model_ |
| pointer on the mixture model | |
| int | nbIterMax_ |
| maximal number of iterations of the algorithm | |
| Real | epsilon_ |
| tolerance of the algorithm. | |
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 SimulAlgo learning algorithm.
The SimulAlgo algorithm calls alternatively steps:
Definition at line 79 of file STK_MixtureAlgoLearn.h.
|
inline |
default constructor
Definition at line 83 of file STK_MixtureAlgoLearn.h.
Referenced by clone().
Copy constructor.
| algo | the algorithm to copy |
Definition at line 86 of file STK_MixtureAlgoLearn.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 93 of file STK_MixtureAlgoLearn.cpp.
References _T, STK::IRunnerBase::error(), STK::Clust::exceptionToString(), STK::IMixtureStatModel::finalizeStep(), STK::IStatModelBase::lnLikelihood(), STK::IMixtureLearner::mapStep(), STK::IRunnerBase::msg_error_, STK::IMixtureAlgoLearn::nbIterMax_, STK::IMixtureAlgoLearn::p_model_, STK::IMixtureLearner::paramUpdateStep(), STK::IMixtureStatModel::releaseIntermediateResults(), STK::IMixtureStatModel::samplingStep(), stk_cout, STK::IMixtureStatModel::storeIntermediateResults(), and STK::IMixtureStatModel::writeParameters().