mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
GaussianSample.h
1 /***************************************************************************
2  SRC/mixmod/Kernel/IO/GaussianSample.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 XEMGAUSSIANSample_H
26 #define XEMGAUSSIANSample_H
27 
28 #include "mixmod/Kernel/IO/Sample.h"
29 
30 namespace XEM {
31 
37 class GaussianSample : public Sample {
38 
39 public:
40 
43 
45  GaussianSample(int64_t pbDimension);
46 
48  GaussianSample(GaussianSample * iSample);
49 
51  GaussianSample(int64_t pbDimension, double * tabValue);
52 
54  virtual ~GaussianSample();
55 
57  void setDataTabValue(double * tabValue);
58 
60  void setDataValue(int64_t idxDim, double value);
61 
63  double * getTabValue() const;
64 
66  double getDataValue(int64_t idxDim) const;
67 
68 protected:
69 
71  double * _value;
72 };
73 
74 //---------------
75 // inline methods
76 //---------------
77 
78 inline double * GaussianSample::getTabValue() const {
79  return _value;
80 }
81 
82 inline double GaussianSample::getDataValue(int64_t idxDim) const {
83  return _value[idxDim];
84 }
85 
86 }
87 
88 #endif
double * getTabValue() const
get value vector of sample
Definition: GaussianSample.h:78
void setDataTabValue(double *tabValue)
Set value vector of sample.
Definition: GaussianSample.cpp:72
void setDataValue(int64_t idxDim, double value)
Set one value of sample.
Definition: GaussianSample.cpp:79
GaussianSample()
Constructor.
Definition: GaussianSample.cpp:34
Base class for Sample.
Definition: GaussianSample.h:37
double getDataValue(int64_t idxDim) const
get one value of sample
Definition: GaussianSample.h:82
virtual ~GaussianSample()
Destructor.
Definition: GaussianSample.cpp:63
Base class for Sample.
Definition: Sample.h:41