mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
PredictInput.h
1 /***************************************************************************
2  SRC/mixmod/DiscriminantAnalysis/Predict/PredictInput.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 XEMPREDICTINPUT_H
26 #define XEMPREDICTINPUT_H
27 
28 #include "mixmod/Kernel/IO/Input.h"
29 
30 namespace XEM {
31 
32 // pre-declaration
33 class PredictStrategy;
34 class Parameter;
35 class ParameterDescription;
36 
44 class PredictInput : public Input {
45 
46 public:
47 
49  PredictInput();
50 
52  PredictInput(const PredictInput & CInput);
53 
55  PredictInput(DataDescription * predictData, ParameterDescription * classificationRule);
56 
58  virtual ~PredictInput();
59 
60  // accessor
61  Parameter * getClassificationRule() const;
62 
64  virtual void setCriterion(std::vector<CriterionName> const & criterionName);
65 
67  virtual void setCriterion(const CriterionName criterionName, unsigned int index);
68 
70  virtual void insertCriterion(const CriterionName criterionName, unsigned int index);
71 
73  virtual void addCriterion(const CriterionName criterionName);
74 
76  virtual CriterionName getCriterionName(unsigned int index) const;
77 
78  // remove criterion
79  virtual void removeCriterion(unsigned int index);
80 
81  // set model type
82  virtual void setModelType(const ModelType * modelType, unsigned int index);
83 
84  // insert model type
85  virtual void insertModelType(const ModelType * modelType, unsigned int index);
86 
87  // remove model type
88  virtual void removeModelType(unsigned int index);
89 
90  // add model type
91  virtual void addModel(ModelName const modelName );
92 
93 protected:
94 
96  Parameter * _classificationRule;
98  virtual bool verif();
99 };
100 
101 // accessor
102 inline Parameter * PredictInput::getClassificationRule() const {
103  return _classificationRule;
104 }
105 
106 }
107 
108 #endif
std::vector< CriterionName > const & getCriterionName() const
get All Criterion Name
Definition: Input.h:292
Base class for ModelType(s)
Definition: ModelType.h:37
ModelName
Enumeration of model name.
Definition: Util.h:403
virtual void setCriterion(std::vector< CriterionName > const &criterionName)
setCriterionName
Definition: PredictInput.cpp:87
virtual ~PredictInput()
Destructor.
Definition: PredictInput.cpp:62
virtual void addCriterion(const CriterionName criterionName)
addCriterion
Definition: PredictInput.cpp:105
PredictInput()
Default Constructor.
Definition: PredictInput.cpp:36
CriterionName
Enumeration of Criterion type.
Definition: Util.h:303
virtual void insertCriterion(const CriterionName criterionName, unsigned int index)
insertCriterion
Definition: PredictInput.cpp:99
Definition: ParameterDescription.h:44
Definition: Input.h:44
Definition: PredictInput.h:44
Base class for XEMParameter(s)
Definition: Parameter.h:45
virtual bool verif()
verif
Definition: PredictInput.cpp:137
Definition: DataDescription.h:45