mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
ProbaOutput.h
1 /***************************************************************************
2  SRC/mixmod/Kernel/IO/ProbaOutput.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 XEMProbaOutput_H
26 #define XEMProbaOutput_H
27 
32 #include <iostream>
33 #include <stdint.h>
34 
35 namespace XEM {
36 
37 // pre-declaration
38 class Model;
39 
40 class ProbaOutput {
41 
42 public:
43 
45  ProbaOutput();
46 
48  ProbaOutput(Model * model);
49 
50  ProbaOutput(ProbaOutput * iProbaOutput);
51 
53  virtual ~ProbaOutput();
54 
56  void setCVLabel(int64_t * CVLabel);
57 
59  void editPartition(std::ofstream & oFile);
60 
62  void editLabel(std::ofstream & oFile);
63 
65  void editLabel();
66 
68  void editPostProba(std::ofstream & oFile);
69 
71  void editCVLabel(std::ofstream & oFile);
72 
74  int64_t * getTabLabel() const;
75 
77  int64_t * getTabCVLabel() const;
78 
80  int64_t ** getTabPartition() const;
81 
83  double ** getTabPostProba() const;
85  int64_t getNbSample() const;
86  int64_t getNbCluster() const;
88  ProbaOutput * clone();
89 
90 private:
91 
93  int64_t _nbSample;
94 
96  int64_t _nbCluster;
97 
99  int64_t * _tabLabel;
100 
102  bool _CVLabelAvailable;
103 
105  int64_t * _tabCVLabel;
106 
109 
110  //TODO RD : utiliser XEMPartition plutôt
111  int64_t ** _tabPartition;
112 
115  double ** _tabPostProba;
116 };
117 
118 //---------------
119 // inline methods
120 //---------------
121 
122 inline int64_t * ProbaOutput::getTabLabel() const {
123  return _tabLabel;
124 }
125 
126 inline int64_t * ProbaOutput::getTabCVLabel() const {
127  return _tabCVLabel;
128 }
129 
130 inline int64_t ** ProbaOutput::getTabPartition() const {
131  return _tabPartition;
132 }
133 
134 inline double ** ProbaOutput::getTabPostProba() const {
135  return _tabPostProba;
136 }
137 
138 inline int64_t ProbaOutput::getNbSample() const {
139  return _nbSample;
140 }
141 
142 inline int64_t ProbaOutput::getNbCluster() const {
143  return _nbCluster;
144 }
145 
146 }
147 
148 #endif
void editPostProba(std::ofstream &oFile)
editPostProba
Definition: ProbaOutput.cpp:226
double ** getTabPostProba() const
Selector.
Definition: ProbaOutput.h:134
int64_t getNbSample() const
Selector.
Definition: ProbaOutput.h:138
Definition: Model.h:50
void editCVLabel(std::ofstream &oFile)
editCVLabel
Definition: ProbaOutput.cpp:234
int64_t * getTabLabel() const
Selector.
Definition: ProbaOutput.h:122
int64_t ** getTabPartition() const
Selector.
Definition: ProbaOutput.h:130
int64_t * getTabCVLabel() const
Selector.
Definition: ProbaOutput.h:126
void editPartition(std::ofstream &oFile)
editPartition
Definition: ProbaOutput.cpp:186
ProbaOutput * clone()
clone
Definition: ProbaOutput.cpp:242
ProbaOutput()
Default constructor.
Definition: ProbaOutput.cpp:37
Definition: ProbaOutput.h:40
void editLabel()
editLabel
Definition: ProbaOutput.cpp:217
void setCVLabel(int64_t *CVLabel)
setCVLabel
Definition: ProbaOutput.cpp:177
virtual ~ProbaOutput()
Destructor.
Definition: ProbaOutput.cpp:143