CMS 3D CMS Logo

LinearFitErrorsIn2Coord.h

Go to the documentation of this file.
00001 #ifndef LinearFitErrorsIn2Coord_H
00002 #define LinearFitErrorsIn2Coord_H
00003 
00004 #include <vector>
00005 using namespace std;
00006 
00011 class LinearFitErrorsIn2Coord {
00012 
00013 public:
00014 
00020   float slope(const vector<float> & x, const vector<float> & y, int ndat, 
00021               const vector<float> & sigx, const vector<float> & sigy) const;
00022 
00025   float intercept(const vector<float> & x, const vector<float> & y, int ndat, 
00026                   const vector<float> & sigx, const vector<float> & sigy) const;
00027 
00028 private:
00029 
00030   float variance(const vector<float> & x, int ndat) const;
00031 
00032 
00033 };
00034 
00035 #endif

Generated on Tue Jun 9 17:26:02 2009 for CMSSW by  doxygen 1.5.4