00001 #ifndef __BCDATAPOINT__H 00002 #define __BCDATAPOINT__H 00003 00024 // --------------------------------------------------------- 00025 00026 #include <vector> 00027 00028 // --------------------------------------------------------- 00029 00030 class BCDataPoint 00031 { 00032 public: 00033 00041 BCDataPoint(int nvariables); 00042 00046 BCDataPoint(std::vector<double> x); 00047 00050 BCDataPoint(const BCDataPoint & datapoint); 00051 00054 ~BCDataPoint(); 00055 00062 BCDataPoint & operator = (const BCDataPoint & datapoint); 00063 00072 double GetValue(int index); 00073 00076 std::vector<double> GetValues() 00077 { return fData; }; 00078 00081 unsigned int GetNValues() 00082 { return fData.size(); }; 00083 00093 void SetValue(int index, double value); 00094 00098 void SetValues(std::vector<double> values); 00099 00102 private: 00103 00106 std::vector<double> fData; 00107 00108 }; 00109 00110 // --------------------------------------------------------- 00111 00112 #endif 00113