CMS 3D CMS Logo

LinearFitErrorsIn2Coord.h
Go to the documentation of this file.
1 #ifndef LinearFitErrorsIn2Coord_H
2 #define LinearFitErrorsIn2Coord_H
3 
4 #include <vector>
5 
11 public:
17  float slope(const std::vector<float>& x,
18  const std::vector<float>& y,
19  int ndat,
20  const std::vector<float>& sigx,
21  const std::vector<float>& sigy) const;
22 
25  float intercept(const std::vector<float>& x,
26  const std::vector<float>& y,
27  int ndat,
28  const std::vector<float>& sigx,
29  const std::vector<float>& sigy) const;
30 
31 private:
32  float variance(const std::vector<float>& x, int ndat) const;
33 };
34 
35 #endif
float slope(const std::vector< float > &x, const std::vector< float > &y, int ndat, const std::vector< float > &sigx, const std::vector< float > &sigy) const
float variance(const std::vector< float > &x, int ndat) const
float intercept(const std::vector< float > &x, const std::vector< float > &y, int ndat, const std::vector< float > &sigx, const std::vector< float > &sigy) const