|
STK++ 0.9.13
|
Initialization by simulating a realization of the class labels zi accordingly to the initial proportions. More...
#include <STK_MixtureInit.h>

Public Member Functions | |
| ClassInit () | |
| default constructor | |
| ClassInit (ClassInit const &init) | |
| copy constructor | |
| virtual | ~ClassInit () |
| destructor | |
| virtual ClassInit * | clone () const |
| clone pattern | |
| virtual bool | run () |
| run the initialization by calling the randomClassInit method of the model. | |
Public Member Functions inherited from STK::IMixtureInit | |
| virtual | ~IMixtureInit () |
| destructor | |
| IMixtureAlgo const *const | p_initAlgo () const |
| set a the number of try | |
| int | nbTry () const |
| void | setNbTry (int nbTry) |
| set a the number of try | |
| void | setModel (IMixtureComposer *p_model) |
| set a new model | |
| void | setInitAlgo (IMixtureAlgo *p_initAlgo) |
| set the initial algorithm | |
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::IMixtureInit | |
| IMixtureInit () | |
| default constructor | |
| IMixtureInit (IMixtureInit const &init) | |
| copy constructor. | |
| bool | runInitAlgo () |
| launch the initialization algorithm. | |
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::IMixtureInit | |
| int | nbTry_ |
| number of retry in initialization | |
| IMixtureComposer * | p_model_ |
| pointer on the mixture model | |
| IMixtureAlgo * | p_initAlgo_ |
| algorithm to use in the initialization | |
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 | |
Initialization by simulating a realization of the class labels zi accordingly to the initial proportions.
Definition at line 69 of file STK_MixtureInit.h.
|
inline |
default constructor
Definition at line 73 of file STK_MixtureInit.h.
Referenced by clone().
copy constructor
| init | the initialization to copy |
Definition at line 77 of file STK_MixtureInit.h.
|
inlinevirtual |
clone pattern
Implements STK::IMixtureInit.
Definition at line 81 of file STK_MixtureInit.h.
References ClassInit().
|
virtual |
run the initialization by calling the randomClassInit method of the model.
true if no error occur, false otherwise Implements STK::IRunnerBase.
Definition at line 116 of file STK_MixtureInit.cpp.
References _T, STK::IRunnerBase::error(), STK::Clust::exceptionToString(), STK::IMixtureComposer::initializeStep(), STK::IRunnerBase::msg_error_, STK::IMixtureInit::nbTry_, STK::IMixtureInit::p_initAlgo_, STK::IMixtureInit::p_model_, STK::IMixtureComposer::randomClassInit(), run(), STK::IMixtureInit::runInitAlgo(), stk_cout, and STKERROR_NO_ARG.
Referenced by STK::RandomInit::run(), run(), STK::FuzzyInit::run(), and STK::IMixtureInit::runInitAlgo().