File indexing completed on 2024-04-06 12:01:11
0001 #ifndef LinearFitErrorsIn2Coord_H
0002 #define LinearFitErrorsIn2Coord_H
0003
0004 #include <vector>
0005
0006
0007
0008
0009
0010 class LinearFitErrorsIn2Coord {
0011 public:
0012
0013
0014
0015
0016
0017 float slope(const std::vector<float>& x,
0018 const std::vector<float>& y,
0019 int ndat,
0020 const std::vector<float>& sigx,
0021 const std::vector<float>& sigy) const;
0022
0023
0024
0025 float intercept(const std::vector<float>& x,
0026 const std::vector<float>& y,
0027 int ndat,
0028 const std::vector<float>& sigx,
0029 const std::vector<float>& sigy) const;
0030
0031 private:
0032 float variance(const std::vector<float>& x, int ndat) const;
0033 };
0034
0035 #endif