mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
BinaryModel.h
1 /***************************************************************************
2  SRC/mixmod/Kernel/Model/BinaryModel.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 XEMBINARYMODEL_H
26 #define XEMBINARYMODEL_H
27 
28 #include "mixmod/Kernel/Model/Model.h"
29 #include <vector>
30 
31 namespace XEM {
32 
33 
39 class BinaryModel : public Model {
40 
41 public:
42 
44  BinaryModel();
45 
46  //clone function
47  virtual Model * clone();
49  BinaryModel(BinaryModel * iModel);
50 
52  BinaryModel(ModelType * modelType, int64_t nbCluster, Data *& data, Partition * knownPartition, std::vector<int64_t> const & correspondenceOriginDataToReduceData);
53 
55  virtual ~BinaryModel();
56 
57  // get the reduced data vector
58 
59  inline const std::vector<int64_t> & getCorrespondenceOriginDataToReduceData() const {
60  return _correspondenceOriginDataToReduceData;
61  }
62 
63 private:
64 
65  // reduced data
66  std::vector<int64_t> _correspondenceOriginDataToReduceData;
67 };
68 
69 }
70 
71 #endif
Base class for ModelType(s)
Definition: ModelType.h:37
Base class for Model(s)
Definition: BinaryModel.h:39
Base class for Partition(s)
Definition: Partition.h:39
Definition: Model.h:50
BinaryModel()
Default constructor.
Definition: BinaryModel.cpp:31
virtual ~BinaryModel()
Destructor.
Definition: BinaryModel.cpp:58
Base class for Data.
Definition: Data.h:43