BayesianAnalysisToolkit
0.9.3
|
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) |
Private Attributes | |
std::vector< double > | fData |
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 |
double BCDataPoint::GetValue | ( | unsigned | index) | const |
index | The index of the variable. |
Definition at line 34 of file BCDataPoint.cxx.
|
inline |
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.
|
private |
The vector containing the values of the variables.
Definition at line 90 of file BCDataPoint.h.