mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
Sample.h
1 /***************************************************************************
2  SRC/mixmod/Kernel/IO/Sample.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 XEMSample_H
26 #define XEMSample_H
27 
28 #include <stdint.h>
29 #include "mixmod/Utilities/Util.h"
30 
31 namespace XEM {
32 
33 class GaussianSample;
34 class BinarySample;
35 
41 class Sample {
42 
43 public:
44 
46  Sample();
47 
49  Sample(Sample * iSample);
50 
52  Sample(int64_t pbDimension);
53 
55  virtual ~Sample();
56 
57  virtual GaussianSample* getGaussianSample() const {
58  return (GaussianSample*)this;
59  }
60 
61  virtual BinarySample* getBinarySample() const {
62  return (BinarySample*)this;
63  }
64 
66  int64_t getPbDimension();
67 
68 protected:
69 
71  int64_t _pbDimension;
72 };
73 
74 inline int64_t Sample::getPbDimension() {
75  return _pbDimension;
76 }
77 
78 }
79 
80 #endif
int64_t getPbDimension()
Selector.
Definition: Sample.h:74
Sample()
Constructor.
Definition: Sample.cpp:33
Base class for Sample.
Definition: BinarySample.h:37
Base class for Sample.
Definition: GaussianSample.h:37
virtual ~Sample()
Destructor.
Definition: Sample.cpp:54
Constants definitions, various utilities to describe models, and others...
Base class for Sample.
Definition: Sample.h:41