STK++ 0.9.13
STK_IMixtureAlgoPredict.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------*/
2/* Copyright (C) 2004-2016 Serge Iovleff, Université Lille 1, Inria
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_Dot_org (see copyright for ...)
23*/
24
25/*
26 * Project: stkpp::Clustering
27 * created on: 16 oct. 2012
28 * Author: iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29 **/
30
35#ifndef STK_IMIXTUREALGOPREDICT_H
36#define STK_IMIXTUREALGOPREDICT_H
37
38#include <Sdk.h>
39#include "../STK_Clust_Util.h"
40
41namespace STK
42{
43// forward declaration
44class IMixtureComposer;
45
58{
59 protected:
65
66 public:
68 virtual ~IMixtureAlgoPredict();
69
70 // getters
72 inline int nbIterBurn() const { return nbIterBurn_; }
74 inline int setNbIterLong() const { return nbIterLong_; }
76 inline int epsilon() const { return epsilon_;}
77
78 // setters
87
88 protected:
97
114 bool burnStep();
115
116};
117
118} // namespace STK
119
120#endif /* STK_IMIXTUREALGO_H */
This file include all the other header files of the project Sdk.
Interface base class for predicting algorithms.
bool predictBayesClassifier()
predict class labels when there is no missing values.
IMixtureAlgoPredict()
default constructor
void setNbIterBurn(int nbIterBurn)
set number of burning iterations
virtual ~IMixtureAlgoPredict()
destructor
void setNbIterLong(int nbIterLong)
set number of long iterations
int nbIterLong_
maximal number of iterations of the algorithm
bool burnStep()
Perform burn step using SEM algorithm.
int nbIterBurn_
Number of burning iterations of the algorithm.
Real epsilon_
tolerance of the algorithm.
void setEpsilon(Real epsilon)
set tolerance value
void setModel(IMixtureComposer *p_model)
set model
IMixtureComposer * p_model_
pointer on the mixture model
Base class for Mixture (composed) model.
Abstract base class for all classes having a.
Definition STK_IRunner.h:65
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.