#include <BCDataPoint.h>
Definition at line 30 of file BCDataPoint.h.
Public Member Functions | |
Constructors and destructors | |
BCDataPoint (std::vector< double > x) | |
BCDataPoint (int nvariables) | |
~BCDataPoint () | |
Member functions (get) | |
int | GetNValues () |
double | GetValue (int index) |
std::vector< double > | GetValues () |
Member functions (set) | |
void | SetValue (int index, double value) |
void | SetValues (std::vector< double > values) |
Private Attributes | |
std::vector< double > | fData |
BCDataPoint::BCDataPoint | ( | int | nvariables | ) |
A constructor.
nvariables | The number of variables stored in a data. object |
Definition at line 15 of file BCDataPoint.cxx.
BCDataPoint::BCDataPoint | ( | std::vector< double > | x | ) |
A constructor.
x | The vector containing the data. |
Definition at line 27 of file BCDataPoint.cxx.
BCDataPoint::~BCDataPoint | ( | ) |
A destructor.
Definition at line 38 of file BCDataPoint.cxx.
int BCDataPoint::GetNValues | ( | ) | [inline] |
Returns the number of values.
Definition at line 76 of file BCDataPoint.h.
double BCDataPoint::GetValue | ( | int | index | ) |
index | The index of the variable. |
Definition at line 45 of file BCDataPoint.cxx.
std::vector<double> BCDataPoint::GetValues | ( | ) | [inline] |
void BCDataPoint::SetValue | ( | int | index, | |
double | value | |||
) |
Set the value of a variable.
index | The index of the variable | |
value | The value of the variable |
Definition at line 64 of file BCDataPoint.cxx.
void BCDataPoint::SetValues | ( | std::vector< double > | values | ) |
Set the values of all variables.
values | A vector of values |
Definition at line 81 of file BCDataPoint.cxx.
std::vector<double> BCDataPoint::fData [private] |
The vector containing the values of the variables.
Definition at line 104 of file BCDataPoint.h.