11 #include "BCDataPoint.h"
23 fData.assign(nvariables, 0.);
39 if (index < fData.size())
45 Form(
"BCDataPoint::GetValue : Index %u out of range (%u to %u).",
46 index, 0,
unsigned(fData.size()-1)));
57 if (index < fData.size())
63 Form(
"BCDataPoint::SetValue : Index %u out of range (%u to %u).",
64 index, 0 ,
unsigned(fData.size()-1)));
74 if (values.size() == fData.size())
80 BCLog::OutError(
"BCDataPoint::SetValues : Vectors have different ranges.");
BCDataPoint(int nvariables)
void SetValues(const std::vector< double > &values)
double GetValue(unsigned index) const
void SetValue(unsigned index, double value)