CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/CommonTools/Statistics/interface/LinearFitErrorsIn2Coord.h

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