STK++ 0.9.13
|
Interface base class for the algorithms. More...
#include <STK_IMixtureAlgo.h>
Public Member Functions | |
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 | |
![]() | |
String const & | error () const |
get the last error message. | |
virtual bool | run ()=0 |
run the computations. | |
Protected Member Functions | |
IMixtureAlgo () | |
default constructor | |
IMixtureAlgo (IMixtureAlgo const &algo) | |
Copy constructor. | |
![]() | |
IRunnerBase () | |
default constructor | |
IRunnerBase (IRunnerBase const &runner) | |
copy constructor | |
virtual | ~IRunnerBase () |
destructor | |
virtual void | update () |
update the runner. | |
Protected Attributes | |
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. | |
![]() | |
String | msg_error_ |
String with the last error message. | |
bool | hasRun_ |
true if run has been used, false otherwise | |
Interface base class for the algorithms.
All algorithms are runners applying on a model instance given by pointer and have to implement the run method.
All algorithms start with an paramUpdateStep(), so user have to provide an instance of the model with initial parameters values.
Definition at line 54 of file STK_IMixtureAlgo.h.
|
protected |
default constructor
Definition at line 44 of file STK_IMixtureAlgo.cpp.
|
protected |
Copy constructor.
algo | algorithm to copy |
Definition at line 47 of file STK_IMixtureAlgo.cpp.
|
virtual |
|
inline |
Definition at line 71 of file STK_IMixtureAlgo.h.
References epsilon_.
Referenced by setEpsilon().
|
inline |
Definition at line 69 of file STK_IMixtureAlgo.h.
References nbIterMax_.
Referenced by setNbIterMax().
void STK::IMixtureAlgo::setModel | ( | IMixtureComposer * | p_model | ) |
set model
Definition at line 58 of file STK_IMixtureAlgo.cpp.
References STK::IStatModelBase::nbSample(), p_model_, and threshold_.
Referenced by STK::FullStrategy::initStep(), STK::FullStrategy::run(), STK::SimpleStrategy::run(), STK::XemStrategy::run(), and STK::IMixtureInit::runInitAlgo().
set maximal number of iterations
Definition at line 79 of file STK_IMixtureAlgo.h.
References nbIterMax(), and nbIterMax_.
set threshold value
Definition at line 83 of file STK_IMixtureAlgo.h.
References threshold(), and threshold_.
|
inline |
Definition at line 73 of file STK_IMixtureAlgo.h.
References threshold_.
Referenced by setThreshold().
|
protected |
tolerance of the algorithm.
Definition at line 91 of file STK_IMixtureAlgo.h.
Referenced by epsilon(), STK::EMAlgo::run(), STK::CEMAlgo::run(), and setEpsilon().
|
protected |
number of iterations of the algorithm
Definition at line 89 of file STK_IMixtureAlgo.h.
Referenced by nbIterMax(), STK::EMAlgo::run(), STK::CEMAlgo::run(), STK::SEMAlgo::run(), STK::SemiSEMAlgo::run(), and setNbIterMax().
|
protected |
pointer on the mixture model
Definition at line 87 of file STK_IMixtureAlgo.h.
Referenced by STK::EMAlgo::run(), STK::CEMAlgo::run(), STK::SEMAlgo::run(), STK::SemiSEMAlgo::run(), and setModel().
|
protected |
Minimal number of individuals.
If the expected number of individuals is under this number, the algorithm will stop and return false.
Definition at line 95 of file STK_IMixtureAlgo.h.
Referenced by STK::EMAlgo::run(), STK::CEMAlgo::run(), STK::SEMAlgo::run(), STK::SemiSEMAlgo::run(), setModel(), setThreshold(), and threshold().