BAT  0.9.4
The Bayesian analysis toolkit
 All Classes Namespaces Functions Variables Enumerations
BCDataPoint.h
1 #ifndef __BCDATAPOINT__H
2 #define __BCDATAPOINT__H
3 
17 /*
18  * Copyright (C) 2007-2014, the BAT core developer team
19  * All rights reserved.
20  *
21  * For the licensing terms see doc/COPYING.
22  * For documentation see http://mpp.mpg.de/bat
23  */
24 
25 // ---------------------------------------------------------
26 
27 #include <vector>
28 
29 // ---------------------------------------------------------
30 
32 {
33  public:
34 
42  BCDataPoint(int nvariables);
43 
47  BCDataPoint(const std::vector<double> & x);
48 
56  double GetValue(unsigned index) const;
57 
60  const std::vector<double> & GetValues() const
61  { return fData; };
62 
65  unsigned int GetNValues() const
66  { return fData.size(); };
67 
77  void SetValue(unsigned index, double value);
78 
82  void SetValues(const std::vector<double> & values);
83 
86  private:
87 
90  std::vector<double> fData;
91 
92 };
93 
94 // ---------------------------------------------------------
95 
96 #endif
97 
A class representing a data point.
Definition: BCDataPoint.h:31
unsigned int GetNValues() const
Definition: BCDataPoint.h:65
BCDataPoint(int nvariables)
Definition: BCDataPoint.cxx:19
void SetValues(const std::vector< double > &values)
Definition: BCDataPoint.cxx:70
const std::vector< double > & GetValues() const
Definition: BCDataPoint.h:60
double GetValue(unsigned index) const
Definition: BCDataPoint.cxx:34
void SetValue(unsigned index, double value)
Definition: BCDataPoint.cxx:54