mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
PredictStrategy.h
1 /***************************************************************************
2  SRC/mixmod/DiscriminantAnalysis/Predict/PredictStrategy.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 XEMPredictStrategy_H
26 #define XEMPredictStrategy_H
27 
28 namespace XEM {
29 
30 // class pre-declaration
31 class Model;
32 class Parameter;
33 
42 
43 public:
44 
46  PredictStrategy(Parameter * classificationRule);
47 
49  PredictStrategy(const PredictStrategy & strategy);
50 
53 
55  void run(Model * model);
56 
57  // verify method
58  bool verify();
59 
60  // get pointer to the algorithm
61  Parameter * getClassificationRule() const;
62 
63 private:
64 
65  // classification rule
66  Parameter * _classificationRule;
67 };
68 
69 // get pointer to the algorithm
70 inline Parameter * PredictStrategy::getClassificationRule() const {
71  return _classificationRule;
72 }
73 
74 }
75 
76 #endif
PredictStrategy(Parameter *classificationRule)
Default constructor.
Definition: PredictStrategy.cpp:36
Definition: Model.h:50
Definition: PredictStrategy.h:41
~PredictStrategy()
Destructor.
Definition: PredictStrategy.cpp:50
Base class for XEMParameter(s)
Definition: Parameter.h:45
void run(Model *model)
Run method.
Definition: PredictStrategy.cpp:56