1 #ifndef DTSegment_DTLinearFit_h 2 #define DTSegment_DTLinearFit_h 37 void fit(
const std::vector<float> &
x,
38 const std::vector<float> &
y,
40 const std::vector<float> & sigy,
50 const std::vector<float>& xfit,
51 const std::vector<float>& yfit,
52 const std::vector<int>& lfit,
53 const std::vector<double>& tfit,
54 const std::vector<float> & sigy,
60 const bool debug)
const;
63 void fit3par(
const std::vector<float>& xfit,
64 const std::vector<float>& yfit,
65 const std::vector<int>& lfit,
67 const std::vector<float> & sigy,
72 const bool debug)
const;
75 void fit4Var(
const std::vector<float>& xfit,
76 const std::vector<float>& yfit,
77 const std::vector<int>& lfit,
78 const std::vector<double>& tfit,
85 const bool vdrift_4parfit,
86 const bool debug)
const;
93 #endif // DTSegment_DTLinearFit_h void fit3par(const std::vector< float > &xfit, const std::vector< float > &yfit, const std::vector< int > &lfit, const int nptfit, const std::vector< float > &sigy, float &aminf, float &bminf, float &cminf, double &chi2fit, const bool debug) const
static const double slope[3]
void fit(const std::vector< float > &x, const std::vector< float > &y, int ndat, const std::vector< float > &sigy, float &slope, float &intercept, double &chi2, float &covss, float &covii, float &covsi) const
void fit4Var(const std::vector< float > &xfit, const std::vector< float > &yfit, const std::vector< int > &lfit, const std::vector< double > &tfit, const int nptfit, float &aminf, float &bminf, float &cminf, float &vminf, double &chi2fit, const bool vdrift_4parfit, const bool debug) const
~DTLinearFit()
Destructor.
DTLinearFit()
Constructor.
void fitNpar(const int npar, const std::vector< float > &xfit, const std::vector< float > &yfit, const std::vector< int > &lfit, const std::vector< double > &tfit, const std::vector< float > &sigy, float &aminf, float &bminf, float &cminf, float &vminf, double &chi2fit, const bool debug) const