STK++ 0.9.13
STK_MixtureCriterion.cpp
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_Dot_org (see copyright for ...)
23*/
24
25/*
26 * Project: stkpp::Clustering
27 * created on: 19 sept. 2014
28 * Author: iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29 **/
30
36
37namespace STK
38{
39
40//* Compute AIC Criterion */
42{
43 if (!p_composer_)
45 return false;
46 }
48 return true;
49}
50
51//* Compute BIC Criterion */
53{
54 if (!p_composer_)
56 return false;
57 }
59 return true;
60}
61
62/* implementation of the virtual method run */
64{
65 if (!p_composer_)
67 return false;
68 }
70 return true;
71}
72
73/* implementation of the virtual method run */
75{
76 if (!p_composer_)
78 return false;
79 }
81 return true;
82}
83
84
85} // namespace STK
86
87
#define STKERROR_NO_ARG(Where, Error)
Definition STK_Macros.h:49
In this file we define the classes for computing the penalized criterion on mixture models.
virtual bool run()
implementation of the virtual method run
virtual bool run()
implementation of the virtual method run
virtual bool run()
implementation of the virtual method run
Real value_
Computed value of the criterion.
IMixtureStatModel const * p_composer_
The current statistical model to use.
String msg_error_
String with the last error message.
Definition STK_IRunner.h:96
virtual bool run()
implementation of the virtual method run
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
The namespace STK is the main domain space of the Statistical ToolKit project.