STK++ 0.9.13
|
Interface base class for the initializations. More...
#include <STK_IMixtureInit.h>
Public Member Functions | |
virtual | ~IMixtureInit () |
destructor | |
virtual IMixtureInit * | clone () const =0 |
clone pattern | |
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. | |
virtual bool | run ()=0 |
run the computations. | |
Protected Member Functions | |
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. | |
Protected Attributes | |
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 | |
Interface base class for the initializations.
All derived class will apply on a model instance and have to implement the run method. An initialization determine in some way values for the parameters of the mixture and perform a given number of iterations of the SEM algorithm.
Definition at line 55 of file STK_IMixtureInit.h.
|
inlineprotected |
default constructor
Definition at line 59 of file STK_IMixtureInit.h.
|
inlineprotected |
copy constructor.
init | the initializing method to copy |
Definition at line 63 of file STK_IMixtureInit.h.
|
virtual |
|
pure virtual |
clone pattern
Implemented in STK::RandomInit, STK::ClassInit, and STK::FuzzyInit.
|
inline |
Definition at line 75 of file STK_IMixtureInit.h.
References nbTry_.
Referenced by setNbTry().
|
inline |
set a the number of try
Definition at line 73 of file STK_IMixtureInit.h.
References p_initAlgo_.
Referenced by runInitAlgo(), and setInitAlgo().
|
protected |
launch the initialization algorithm.
Definition at line 53 of file STK_MixtureInit.cpp.
References STK::IRunnerBase::msg_error_, p_initAlgo(), p_initAlgo_, p_model_, STK::ClassInit::run(), STK::IRunnerBase::run(), STK::IMixtureAlgo::setModel(), and STKERROR_NO_ARG.
Referenced by STK::RandomInit::run(), STK::ClassInit::run(), and STK::FuzzyInit::run().
|
inline |
set the initial algorithm
Definition at line 81 of file STK_IMixtureInit.h.
References p_initAlgo(), and p_initAlgo_.
|
inline |
set a new model
Definition at line 79 of file STK_IMixtureInit.h.
References p_model_.
Referenced by STK::FullStrategy::initStep(), STK::SimpleStrategy::run(), and STK::XemStrategy::run().
|
protected |
number of retry in initialization
Definition at line 85 of file STK_IMixtureInit.h.
Referenced by nbTry(), STK::RandomInit::run(), STK::ClassInit::run(), STK::FuzzyInit::run(), and setNbTry().
|
protected |
algorithm to use in the initialization
Definition at line 89 of file STK_IMixtureInit.h.
Referenced by p_initAlgo(), STK::RandomInit::run(), STK::ClassInit::run(), STK::FuzzyInit::run(), runInitAlgo(), setInitAlgo(), and ~IMixtureInit().
|
protected |
pointer on the mixture model
Definition at line 87 of file STK_IMixtureInit.h.
Referenced by STK::RandomInit::run(), STK::ClassInit::run(), STK::FuzzyInit::run(), runInitAlgo(), and setModel().