LinFitAlg.h
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////
2 ///
3 /// LinFitAlg class
4 ///
5 /// Bruce Baller, baller@fnal.gov
6 ///
7 /// Algorithm for fitting a 2D line
8 ///
9 ////////////////////////////////////////////////////////////////////////
10 #ifndef LINFITALG_H
11 #define LINFITALG_H
12 
13 #include <vector>
14 
15 
16 namespace trkf{
17 
18  class LinFitAlg {
19  public:
20 
21  void LinFit(std::vector<float>& x, std::vector<float>& y,
22  std::vector<float>& ey2, float& Intercept, float& Slope,
23  float& InterceptError, float& SlopeError, float& ChiDOF) const;
24 
25  }; // class LinFitAlg
26 
27 } // namespace trkf
28 
29 #endif // ifndef LINFITALG_H
void LinFit(std::vector< float > &x, std::vector< float > &y, std::vector< float > &ey2, float &Intercept, float &Slope, float &InterceptError, float &SlopeError, float &ChiDOF) const
Definition: LinFitAlg.cxx:17
list x
Definition: train.py:276