mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
Criterion.h
1 /***************************************************************************
2  SRC/mixmod/Kernel/Criterion/Criterion.h description
3  copyright : (C) MIXMOD Team - 2001-2016
4  email : contact@mixmod.org
5  ***************************************************************************/
6 
7 /***************************************************************************
8  This file is part of MIXMOD
9 
10  MIXMOD is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  MIXMOD is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with MIXMOD. If not, see <http://www.gnu.org/licenses/>.
22 
23  All informations available on : http://www.mixmod.org
24 ***************************************************************************/
25 #ifndef XEMCriterion_H
26 #define XEMCriterion_H
27 
28 #include "mixmod/Utilities/Util.h"
29 
30 namespace XEM {
31 
37 // pre-declaration
38 class Model;
39 class CriterionOutput;
40 
41 //-----------------------------------
42 // best values are always the smallest
43 //-----------------------------------
44 
45 class Criterion {
46 
47 public:
48 
50  Criterion(Model * model);
51 
53  virtual ~Criterion();
54 
56  virtual void run(CriterionOutput & output) = 0;
57 
58 protected:
59 
61  Model * _model;
62 };
63 
64 }
65 
66 #endif
Definition: Model.h:50
Constants definitions, various utilities to describe models, and others...
virtual void run(CriterionOutput &output)=0
Run method.
Criterion(Model *model)
Default constructor.
Definition: Criterion.cpp:34
Base class for Label(s)
Definition: CriterionOutput.h:36
virtual ~Criterion()
Destructor.
Definition: Criterion.cpp:41
Definition: Criterion.h:45