mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
CVCriterion.h
1 /***************************************************************************
2  SRC/mixmod/Kernel/Criterion/CVCriterion.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 XEMCVCRITERION_H
26 #define XEMCVCRITERION_H
27 
28 #include "mixmod/Kernel/Criterion/Criterion.h"
29 
30 namespace XEM {
31 
32 // pre-declaration
33 class LabelDescription;
34 
40 class CVCriterion : public Criterion {
41 
42 public:
43 
45  CVCriterion(Model * model, const int64_t nbCVBlock);
46 
48  virtual ~CVCriterion();
49 
51  virtual void run(CriterionOutput & output);
52 
54  std::vector<int64_t> & getCVLabel();
55 
56 private:
57 
58  void createCVBlocks();
59 
61  CVBlock* _tabCVBlock;
62 
63  // pointer to a XEMLabelDescription
64  std::vector<int64_t> _cvLabel;
65 
66  // number of CV Blocks
67  int64_t _nbCVBlock;
68 
69  // initialisation method of cv blocks
70  CVinitBlocks _CVinitBlocks;
71 };
72 
73 inline std::vector<int64_t> & CVCriterion::getCVLabel() {
74  return _cvLabel;
75 }
76 
77 }
78 
79 #endif
virtual void run(CriterionOutput &output)
Run method.
Definition: CVCriterion.cpp:54
XEMCVBlock.
Definition: Util.h:393
Definition: Model.h:50
virtual ~CVCriterion()
Destructor.
Definition: CVCriterion.cpp:47
Derived class of XEMCriterion for CV Criterion.
Definition: CVCriterion.h:40
std::vector< int64_t > & getCVLabel()
Accessor.
Definition: CVCriterion.h:73
Base class for Label(s)
Definition: CriterionOutput.h:36
CVCriterion(Model *model, const int64_t nbCVBlock)
Default constructor.
Definition: CVCriterion.cpp:38
Definition: Criterion.h:45