BCDataPoint.h

Go to the documentation of this file.
00001 #ifndef __BCDATAPOINT__H
00002 #define __BCDATAPOINT__H
00003 
00017 /*
00018  * Copyright (C) 2008, Daniel Kollar and Kevin Kroeninger.
00019  * All rights reserved.
00020  *
00021  * For the licensing terms see doc/COPYING.
00022  */
00023 
00024 // ---------------------------------------------------------
00025 
00026 #include <vector>
00027 
00028 // ---------------------------------------------------------
00029 
00030 class BCDataPoint
00031 {
00032    public:
00033 
00035       /* @{ */
00036 
00041       BCDataPoint(int nvariables);
00042 
00046       BCDataPoint(std::vector<double> x);
00047 
00050       ~BCDataPoint();
00051 
00052       /* @} */
00053 
00055       /* @{ */
00056 
00060       double GetValue(int index);
00061 
00064       std::vector <double> GetValues()
00065          { return fData; };
00066 
00069       const unsigned int GetNValues()
00070          { return fData.size(); };
00071 
00072       /* @} */
00073 
00075       /* @{ */
00076 
00081       void SetValue(int index, double value);
00082 
00086       void SetValues(std::vector <double> values);
00087 
00088       /* @} */
00089 
00090    private:
00091 
00094       std::vector <double> fData;
00095 
00096 };
00097 
00098 // ---------------------------------------------------------
00099 
00100 #endif
00101 

Generated on Thu Feb 11 11:29:30 2010 for BayesianAnalysisToolkit by  doxygen 1.5.1