|
STK++ 0.9.13
|
A SimpleStrategy is just nbTry long run. More...
#include <STK_MixtureStrategy.h>

Public Member Functions | |
| SimpleStrategy (IMixtureComposer *&p_model) | |
| default constructor. | |
| SimpleStrategy (SimpleStrategy const &strategy) | |
| copy constructor. | |
| virtual | ~SimpleStrategy () |
| destructor | |
| virtual SimpleStrategy * | clone () const |
| clone pattern | |
| void | setParam (SimpleStrategyParam *p_param) |
| set the parameters of the strategy | |
| virtual bool | run () |
| run the strategy | |
| SimpleStrategy (IMixtureComposer *&p_model) | |
| default constructor. | |
| SimpleStrategy (SimpleStrategy const &strategy) | |
| copy constructor. | |
| virtual | ~SimpleStrategy () |
| destructor | |
| virtual SimpleStrategy * | clone () const |
| clone pattern | |
| void | setParam (SimpleStrategyParam *p_param) |
| set the parameters of the strategy | |
| virtual bool | run () |
| run the strategy | |
Public Member Functions inherited from STK::IMixtureStrategy | |
| 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 | |
Public Member Functions inherited from STK::IRunnerBase | |
| String const & | error () const |
| get the last error message. | |
Protected Attributes | |
| SimpleStrategyParam * | p_param_ |
Protected Attributes inherited from STK::IMixtureStrategy | |
| int | nbTry_ |
| number of tries of each strategies (1 by default) | |
| IMixtureComposer *& | p_model_ |
| reference on the main model | |
| IMixtureInit * | p_init_ |
| initialization method | |
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 | |
Additional Inherited Members | |
Protected Member Functions inherited from STK::IMixtureStrategy | |
| void | storeModel (IMixtureComposer *&p_otherModel) |
| store a model in p_model_ if it is better. | |
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. | |
A SimpleStrategy is just nbTry long run.
Definition at line 64 of file STK_MixtureStrategy.h.
|
inline |
default constructor.
| p_model | a reference pointer on the model to estimate |
Definition at line 70 of file STK_MixtureStrategy.h.
|
inline |
copy constructor.
| strategy | the strategy to copy |
Definition at line 75 of file STK_MixtureStrategy.h.
|
inlinevirtual |
|
inline |
default constructor.
| p_model | a reference pointer on the model to estimate |
Definition at line 69 of file STK_SimpleStrategy.h.
|
inline |
copy constructor.
| strategy | the strategy to copy |
Definition at line 74 of file STK_SimpleStrategy.h.
|
inlinevirtual |
|
inlinevirtual |
clone pattern
Definition at line 81 of file STK_MixtureStrategy.h.
|
inlinevirtual |
|
virtual |
run the strategy
Implements STK::IRunnerBase.
Definition at line 50 of file STK_SimpleStrategy.cpp.
References _T, STK::IMixtureComposer::create(), STK::IRunnerBase::error(), STK::IStatModelBase::lnLikelihood(), STK::IRunnerBase::msg_error_, STK::IMixtureStrategy::nbTry_, STK::SimpleStrategyParam::p_algo_, STK::IMixtureStrategy::p_init_, STK::IMixtureStrategy::p_model_, p_param_, STK::IMixtureComposer::randomFuzzyInit(), run(), STK::IRunnerBase::run(), STK::IMixtureAlgo::setModel(), STK::IMixtureInit::setModel(), STK::IMixtureComposer::state(), stk_cout, STKERROR_NO_ARG, and STK::IMixtureStrategy::storeModel().
Referenced by run().
run the strategy
Implements STK::IRunnerBase.
|
inline |
set the parameters of the strategy
| p_param | the parameters of the strategy |
Definition at line 84 of file STK_MixtureStrategy.h.
References p_param_.
|
inline |
set the parameters of the strategy
| p_param | the parameters of the strategy |
Definition at line 83 of file STK_SimpleStrategy.h.
References p_param_.
|
protected |
Definition at line 90 of file STK_MixtureStrategy.h.
Referenced by run(), setParam(), and ~SimpleStrategy().