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