STK++ 0.9.13
STK_MixtureFacade.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------*/
2/* Copyright (C) 2004-2016 Serge Iovleff
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this program; if not, write to the
16 Free Software Foundation, Inc.,
17 59 Temple Place,
18 Suite 330,
19 Boston, MA 02111-1307
20 USA
21
22 Contact : S..._DOT_I..._AT_stkpp.org (see copyright for ...)
23*/
24
25/*
26 * Project: stkpp::Clustering
27 * created on: 4 sept. 2013
28 * Author: iovleff, serge.iovleff@stkpp.org
29 * Originally created by Parmeet Bhatia <b..._DOT_p..._AT_gmail_Dot_com>
30 **/
31
38#ifndef STK_MIXTUREFACADE_H
39#define STK_MIXTUREFACADE_H
40
41#include <Sdk.h>
42#include "STK_Clust_Util.h"
43
44namespace STK
45{
46
47class IMixtureComposer;
48class IMixtureLearner;
49class IMixtureStrategy;
50
89
96{
97 public:
105 virtual ~LearnFacade();
115 virtual bool run();
116
117 protected:
122};
123
124} // namespace STK
125
126#endif /* STK_MIXTUREFACADE_H */
In this file we define the enum, constants and utilities functions of the Clustering project.
This file include all the other header files of the project Sdk.
Interface base class for the learning algorithms.
Base class for Mixture (composed) model.
Base class for Learner of a Mixture mixed model.
Interface base class for all the strategies.
Abstract base class for all classes having a.
Definition STK_IRunner.h:65
facade design pattern.
virtual bool run()
run algorithm
void createImputeAlgo(Clust::algoLearnType algo, int nbIter, Real epsilon)
create an imputation algorithm
IMixtureLearner * p_model_
the mixture model to learn
LearnFacade(IMixtureLearner *p_model)
constructor.
void setModel(IMixtureLearner *p_model)
set model in case we want to use the strategy again
void createSimulAlgo(Clust::algoLearnType algo, int nblongIter)
create a simulation algorithm
IMixtureAlgoLearn * p_algo_
the algorithm to use for learning
virtual ~LearnFacade()
destructor.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
facade design pattern.
IMixtureComposer *& p_model_
the mixture model to estimate
IMixtureStrategy * p_strategy_
the strategy to use in order to estimate the mixture model
void setModel(IMixtureComposer *&p_model)
set model in case we want to use the strategy again
StrategyFacade(IMixtureComposer *&p_model)
constructor.
void createSimpleStrategy(Clust::initType init, int nbTrialInInit, Clust::algoType initAlgo, int nbInitIter, Real initEpsilon, int nbTry, Clust::algoType algo, int nbIter, Real epsilon)
create a SimpleStrategy
virtual bool run()
run the strategy
void createFullStrategy(Clust::initType init, int nbTryInInit, Clust::algoType initAlgo, int nbInitIter, Real initEpsilon, int nbTry, int nbInitRun, int nbShortRun, Clust::algoType shortAlgo, int nbShortIter, Real shortEpsilon, Clust::algoType longAlgo, int nblongIter, Real longEpsilon)
create a FullStrategy
virtual ~StrategyFacade()
destructor.
initType
initialization type.
algoType
Estimation algorithms.
algoLearnType
Learning estimation algorithms.
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.