mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
LikelihoodOutput.h
1 /***************************************************************************
2  SRC/mixmod/Kernel/IO/LikelihoodOutput.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 XEMLikelihoodOutput_H
26 #define XEMLikelihoodOutput_H
27 
28 #include <fstream>
29 #include <stdint.h>
30 
31 namespace XEM {
32 
33 // pre-declaration
34 class Model;
35 
41 
42 public:
43 
45  LikelihoodOutput(double logLikelihood, double completeLogLikelihood, double entropy, int64_t nbFreeParam);
46 
49  LikelihoodOutput(Model * model);
50 
52  virtual ~LikelihoodOutput();
53 
55  void edit(std::ofstream & oFile, bool text = false);
56 
58  double getLogLikelihood() const;
59  double getCompleteLogLikelihood() const;
60 
61 private:
62 
64  double _logLikelihood;
65 
67  double _completeLogLikelihood;
68 
70  double _entropy;
71 
73  int64_t _nbFreeParam;
74 };
75 
76 inline double LikelihoodOutput::getLogLikelihood() const {
77  return _logLikelihood;
78 }
79 
80 inline double LikelihoodOutput::getCompleteLogLikelihood() const {
81  return _completeLogLikelihood;
82 }
83 
84 }
85 
86 #endif
Base class for Label(s)
Definition: LikelihoodOutput.h:40
double getLogLikelihood() const
Selector.
Definition: LikelihoodOutput.h:76
Definition: Model.h:50
void edit(std::ofstream &oFile, bool text=false)
Edit.
Definition: LikelihoodOutput.cpp:65
virtual ~LikelihoodOutput()
Destructor.
Definition: LikelihoodOutput.cpp:59