mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
QualitativeColumnDescription.h
1 /***************************************************************************
2  SRC/mixmod/Kernel/IO/QualitativeColumnDescription.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 
26 #ifndef XEMQUALITATIVECOLUMNDESCRIPTION_H
27 #define XEMQUALITATIVECOLUMNDESCRIPTION_H
28 
29 #include "mixmod/Kernel/IO/ColumnDescription.h"
30 
31 namespace XEM {
32 
33 //Variable Description
35 
36  int64_t num;
37  std::string name;
38 };
39 
47 
48 public:
49 
52 
54  QualitativeColumnDescription(int64_t index, int64_t nbFactor);
55 
58 
59  std::string editType();
60 
61  ColumnDescription * clone()const;
62 
63  const int64_t & getNbFactor()const;
64 
65  const std::vector<VariableDescription> & getVariableDescription()const;
66 
67  void setVariableDescription(VariableDescription & variableDescription, unsigned int index);
68 
69 private:
70 
71  int64_t _nbFactor;
72  std::vector<VariableDescription> _variableDescription;
73 };
74 
75 inline const int64_t & QualitativeColumnDescription::getNbFactor()const {
76  return _nbFactor;
77 }
78 
79 inline const std::vector<VariableDescription> & QualitativeColumnDescription::getVariableDescription()const {
80  return _variableDescription;
81 }
82 
83 }
84 
85 #endif // XEMQUALITATIVECOLUMNDESCRIPTION_H
virtual ~QualitativeColumnDescription()
Destructor.
Definition: QualitativeColumnDescription.cpp:44
Definition: ColumnDescription.h:38
Definition: QualitativeColumnDescription.h:34
QualitativeColumnDescription()
Default constructor.
Definition: QualitativeColumnDescription.cpp:30
Definition: QualitativeColumnDescription.h:46