STK++ 0.9.13
|
Implementation of the random initialization. More...
#include <STK_MixtureInit.h>
Public Member Functions | |
RandomInit () | |
default constructor | |
RandomInit (RandomInit const &init) | |
copy constructor | |
virtual | ~RandomInit () |
destructor | |
virtual RandomInit * | clone () const |
clone pattern | |
virtual bool | run () |
run the initialization by calling the randomInit method of the model. | |
![]() | |
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 | |
![]() | |
String const & | error () const |
get the last error message. | |
Additional Inherited Members | |
![]() | |
IMixtureInit () | |
default constructor | |
IMixtureInit (IMixtureInit const &init) | |
copy constructor. | |
bool | runInitAlgo () |
launch the initialization algorithm. | |
![]() | |
IRunnerBase () | |
default constructor | |
IRunnerBase (IRunnerBase const &runner) | |
copy constructor | |
virtual | ~IRunnerBase () |
destructor | |
virtual void | update () |
update the runner. | |
![]() | |
int | nbTry_ |
number of retry in initialization | |
IMixtureComposer * | p_model_ |
pointer on the mixture model | |
IMixtureAlgo * | p_initAlgo_ |
algorithm to use in the initialization | |
![]() | |
String | msg_error_ |
String with the last error message. | |
bool | hasRun_ |
true if run has been used, false otherwise | |
Implementation of the random initialization.
This class will initialize the parameter by calling the randomInit() method of the model.
Definition at line 47 of file STK_MixtureInit.h.
|
inline |
default constructor
Definition at line 51 of file STK_MixtureInit.h.
Referenced by clone().
|
inline |
copy constructor
init | the initialization to copy |
Definition at line 55 of file STK_MixtureInit.h.
|
inlinevirtual |
|
inlinevirtual |
clone pattern
Implements STK::IMixtureInit.
Definition at line 59 of file STK_MixtureInit.h.
References RandomInit().
|
virtual |
run the initialization by calling the randomInit method of the model.
true
if no error occur, false
otherwise Implements STK::IRunnerBase.
Definition at line 66 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::randomInit(), STK::ClassInit::run(), STK::IMixtureInit::runInitAlgo(), stk_cout, and STKERROR_NO_ARG.