mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
LearnInput.h
1 /***************************************************************************
2  SRC/mixmod/DiscriminantAnalysis/Learn/LearnInput.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 XEMLEARNINPUT_H
26 #define XEMLEARNINPUT_H
27 
28 #include "mixmod/Kernel/IO/Input.h"
29 
30 namespace XEM {
31 
39 class LearnInput : public Input {
40 
41 public:
42 
44  LearnInput();
45 
47  LearnInput(const LearnInput & CInput);
48 
50  LearnInput(DataDescription * learnData, LabelDescription * knownLabelDescription);
51 
53  virtual ~LearnInput();
54 
55  // Accessors
56  const int64_t getNbCVBlock() const;
57 
59  virtual void setCriterion(std::vector<CriterionName> const & criterionName);
60 
62  virtual void setCriterion(const CriterionName criterionName, unsigned int index);
63 
65  virtual void insertCriterion(const CriterionName criterionName, unsigned int index);
66 
68  virtual void addCriterion(const CriterionName criterionName);
69 
71  void setNbCVBlock(int64_t nbCVBlock);
72 
73 protected:
74 
76  virtual bool verif();
77 
78 private:
79 
80  // number of CV blocks
81  int64_t _nbCVBlock;
82 };
83 
84 inline const int64_t LearnInput::getNbCVBlock() const {
85  return _nbCVBlock;
86 }
87 
88 }
89 
90 #endif
virtual void setCriterion(std::vector< CriterionName > const &criterionName)
setCriterionName
Definition: LearnInput.cpp:67
Definition: LabelDescription.h:43
LearnInput()
Default Constructor.
Definition: LearnInput.cpp:34
void setNbCVBlock(int64_t nbCVBlock)
set the number of CV blocks
Definition: LearnInput.cpp:158
CriterionName
Enumeration of Criterion type.
Definition: Util.h:303
virtual ~LearnInput()
Destructor.
Definition: LearnInput.cpp:62
Definition: Input.h:44
virtual bool verif()
verif
Definition: LearnInput.cpp:165
Definition: LearnInput.h:39
virtual void addCriterion(const CriterionName criterionName)
addCriterion
Definition: LearnInput.cpp:133
virtual void insertCriterion(const CriterionName criterionName, unsigned int index)
insertCriterion
Definition: LearnInput.cpp:111
Definition: DataDescription.h:45