BAT
0.9.4
The Bayesian analysis toolkit
|
A class representing a data point. More...
#include <BCDataPoint.h>
Public Member Functions | |
Constructors and destructors | |
BCDataPoint (int nvariables) | |
BCDataPoint (const std::vector< double > &x) | |
Member functions (get) | |
double | GetValue (unsigned index) const |
const std::vector< double > & | GetValues () const |
unsigned int | GetNValues () const |
Member functions (set) | |
void | SetValue (unsigned index, double value) |
void | SetValues (const std::vector< double > &values) |
A class representing a data point.
Definition at line 31 of file BCDataPoint.h.
BCDataPoint::BCDataPoint | ( | int | nvariables | ) |
A constructor.
nvariables | The number of variables stored in a data. object |
Definition at line 19 of file BCDataPoint.cxx.
BCDataPoint::BCDataPoint | ( | const std::vector< double > & | x | ) |
A constructor.
x | The vector containing the data. |
Definition at line 27 of file BCDataPoint.cxx.
|
inline |
Returns the number of values.
Definition at line 65 of file BCDataPoint.h.
double BCDataPoint::GetValue | ( | unsigned | index | ) | const |
index | The index of the variable. |
Definition at line 34 of file BCDataPoint.cxx.
|
inline |
Definition at line 60 of file BCDataPoint.h.
void BCDataPoint::SetValue | ( | unsigned | index, |
double | value | ||
) |
Set the value of a variable.
index | The index of the variable |
value | The value of the variable |
Definition at line 54 of file BCDataPoint.cxx.
void BCDataPoint::SetValues | ( | const std::vector< double > & | values | ) |
Set the values of all variables.
values | A vector of values |
Definition at line 70 of file BCDataPoint.cxx.