41#if STK_MIXTURE_DEBUG | STK_MIXTURE_VERBOSE | STK_MIXTURE_VERY_VERBOSE
68#ifdef STK_MIXTURE_VERY_VERBOSE
70 <<
_T(
"Entering RandomInit::run()\n")
82#ifdef STK_MIXTURE_VERBOSE
83 stk_cout <<
_T(
"In RandomInit::run(), try number") <<
iTry <<
" runInitAlgo() failed.\n";
92#ifdef STK_MIXTURE_VERBOSE
93 stk_cout <<
_T(
"In RandomInit::run(), try number") <<
iTry <<
" generate an exception.\n";
101#ifdef STK_MIXTURE_VERBOSE
102 stk_cout <<
_T(
"In RandomInit::run(), try number") <<
iTry <<
" generate an exception.\n";
107#ifdef STK_MIXTURE_VERY_VERBOSE
109 <<
_T(
"----------------------\n");
118#ifdef STK_MIXTURE_VERY_VERBOSE
120 <<
_T(
"Entering ClassInit::run()\n")
132#ifdef STK_MIXTURE_VERBOSE
133 stk_cout <<
_T(
"In ClassInit::run(), try number: ") <<
iTry <<
_T(
" runInitAlgo() failed.\n");
143#ifdef STK_MIXTURE_VERBOSE
144 stk_cout <<
_T(
"In ClassInit::run(), try number") <<
iTry <<
" generate an exception.\n";
152#ifdef STK_MIXTURE_VERBOSE
153 stk_cout <<
_T(
"In ClassInit::run(), try number") <<
iTry <<
" generate an exception.\n";
158#ifdef STK_MIXTURE_VERY_VERBOSE
160 <<
_T(
"------------------------\n");
169#ifdef STK_MIXTURE_VERY_VERBOSE
171 <<
_T(
"Entering FuzzyInit::run()\n")
183#ifdef STK_MIXTURE_VERBOSE
184 stk_cout <<
_T(
"In FuzzyInit::run(), try number") <<
iTry <<
" runInitAlgo() failed.\n";
193#ifdef STK_MIXTURE_VERBOSE
194 stk_cout <<
_T(
"In FuzzyInit::run(), try number") <<
iTry <<
_T(
" generate an exception.\n");
202#ifdef STK_MIXTURE_VERBOSE
203 stk_cout <<
_T(
"In FuzzyInit::run(), try number") <<
iTry <<
" generate an exception.\n";
208#ifdef STK_MIXTURE_VERBOSE
210 <<
_T(
"------------------------\n");
This file define methods for displaying Arrays and Expressions.
In this file we define the abstract base class for mixture models.
#define STKERROR_NO_ARG(Where, Error)
In this file we define mixture algorithms.
In this file we define the interface base class for initialization methods.
#define stk_cout
Standard stk output stream.
#define _T(x)
Let x unmodified.
This file include all the other header files of the project Sdk.
virtual bool run()
run the initialization by calling the randomClassInit method of the model.
Sdk class for all library Exceptions.
virtual bool run()
run the algorithm on the model calling E step and M step.
void setModel(IMixtureComposer *p_model)
set model
virtual void initializeStep()
Initialize the model before its first use.
void randomFuzzyInit()
Initialize randomly the posterior probabilities tik of the model, then compute the zi values with map...
void randomClassInit()
Initialize randomly the labels zi of the model.
virtual void randomInit()=0
initialize randomly the parameters of the components of the model
IMixtureComposer * p_model_
pointer on the mixture model
IMixtureAlgo * p_initAlgo_
algorithm to use in the initialization
virtual ~IMixtureInit()
destructor
IMixtureAlgo const *const p_initAlgo() const
set a the number of try
bool runInitAlgo()
launch the initialization algorithm.
int nbTry_
number of retry in initialization
String msg_error_
String with the last error message.
virtual bool run()=0
run the computations.
String const & error() const
get the last error message.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
virtual bool run()
run the initialization by calling the randomInit method of the model.
String exceptionToString(exceptions const &type)
convert a Clust::exceptions to a String.
exceptions
Specific exceptions allowing to handle the erroros that can occur in the estimation process.
std::basic_string< Char > String
STK fundamental type of a String.
The namespace STK is the main domain space of the Statistical ToolKit project.