1 #ifndef DTSegment_DTLinearFit_h 2 #define DTSegment_DTLinearFit_h 35 void fit(
const std::vector<float>&
x,
36 const std::vector<float>&
y,
38 const std::vector<float>& sigy,
48 const std::vector<float>& xfit,
49 const std::vector<float>& yfit,
50 const std::vector<int>& lfit,
51 const std::vector<double>& tfit,
52 const std::vector<float>& sigy,
58 const bool debug)
const;
61 void fit3par(
const std::vector<float>& xfit,
62 const std::vector<float>& yfit,
63 const std::vector<int>& lfit,
65 const std::vector<float>& sigy,
70 const bool debug)
const;
72 void fit4Var(
const std::vector<float>& xfit,
73 const std::vector<float>& yfit,
74 const std::vector<int>& lfit,
75 const std::vector<double>& tfit,
82 const bool vdrift_4parfit,
83 const bool debug)
const;
88 #endif // DTSegment_DTLinearFit_h 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
static const double slope[3]
~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
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 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