STK++ 0.9.13
|
Interface base class for all the strategies. More...
#include <STK_IMixtureStrategy.h>
Public Member Functions | |
IMixtureStrategy (IMixtureComposer *&p_model) | |
default constructor. | |
IMixtureStrategy (IMixtureStrategy const &strategy) | |
copy constructor | |
virtual | ~IMixtureStrategy () |
destructor | |
int | nbTry () const |
void | setNbTry (int nbTry) |
set the number of tries of each strategies. | |
void | setMixtureInit (IMixtureInit *p_init) |
set the initialization method to use | |
![]() | |
String const & | error () const |
get the last error message. | |
virtual bool | run ()=0 |
run the computations. | |
Protected Member Functions | |
void | storeModel (IMixtureComposer *&p_otherModel) |
store a model in p_model_ if it is better. | |
![]() | |
IRunnerBase () | |
default constructor | |
IRunnerBase (IRunnerBase const &runner) | |
copy constructor | |
virtual | ~IRunnerBase () |
destructor | |
virtual void | update () |
update the runner. | |
Protected Attributes | |
int | nbTry_ |
number of tries of each strategies (1 by default) | |
IMixtureComposer *& | p_model_ |
reference on the main model | |
IMixtureInit * | p_init_ |
initialization method | |
![]() | |
String | msg_error_ |
String with the last error message. | |
bool | hasRun_ |
true if run has been used, false otherwise | |
Interface base class for all the strategies.
Definition at line 49 of file STK_IMixtureStrategy.h.
STK::IMixtureStrategy::IMixtureStrategy | ( | IMixtureComposer *& | p_model | ) |
default constructor.
p_model | the model to estimate |
Definition at line 45 of file STK_IMixtureStrategy.cpp.
STK::IMixtureStrategy::IMixtureStrategy | ( | IMixtureStrategy const & | strategy | ) |
copy constructor
strategy | the strategy to copy |
Definition at line 51 of file STK_IMixtureStrategy.cpp.
|
virtual |
|
inline |
Definition at line 64 of file STK_IMixtureStrategy.h.
References nbTry_.
Referenced by setNbTry().
|
inline |
set the initialization method to use
p_init | the initialization method to use |
Definition at line 71 of file STK_IMixtureStrategy.h.
References p_init_.
set the number of tries of each strategies.
nbTry | the number of tries to set |
Definition at line 68 of file STK_IMixtureStrategy.h.
|
protected |
store a model in p_model_ if it is better.
p_otherModel | the model to store |
Definition at line 60 of file STK_IMixtureStrategy.cpp.
References STK::IStatModelBase::lnLikelihood(), and p_model_.
Referenced by STK::SimpleStrategy::run(), and STK::XemStrategy::run().
|
protected |
number of tries of each strategies (1 by default)
Definition at line 75 of file STK_IMixtureStrategy.h.
Referenced by nbTry(), STK::FullStrategy::run(), STK::SimpleStrategy::run(), STK::XemStrategy::run(), and setNbTry().
|
protected |
initialization method
Definition at line 79 of file STK_IMixtureStrategy.h.
Referenced by STK::FullStrategy::initStep(), STK::SimpleStrategy::run(), STK::XemStrategy::run(), setMixtureInit(), and ~IMixtureStrategy().
|
protected |
reference on the main model
Definition at line 77 of file STK_IMixtureStrategy.h.
Referenced by STK::FullStrategy::initStep(), STK::FullStrategy::run(), STK::SimpleStrategy::run(), STK::XemStrategy::run(), and storeModel().