#include <LinearFit.h>
Public Member Functions | |
void | fit (const std::vector< float > &x, const std::vector< float > &y, int ndat, const std::vector< float > &sigy, float &slope, float &intercept, float &covss, float &covii, float &covsi) const |
Straight line fit for data with errors on one coordinate
Definition at line 9 of file LinearFit.h.
void LinearFit::fit | ( | const std::vector< float > & | x, |
const std::vector< float > & | y, | ||
int | ndat, | ||
const std::vector< float > & | sigy, | ||
float & | slope, | ||
float & | intercept, | ||
float & | covss, | ||
float & | covii, | ||
float & | covsi | ||
) | const |
x_i, y_i: measurements of y(x_i), sigy_i: error (sigma) on y_i slope, intercept: fitted parameters covss, covii, covsi: covariance matrix of fitted parameters, s denoting slope, i denoting intercept
Definition at line 3 of file LinearFit.cc.
References ztail::d, diffTwoXMLs::g1, diffTwoXMLs::g2, mps_fire::i, slope, x, and y.
Referenced by trackingPlots.Iteration::modules(), and LinearFitErrorsIn2Coord::slope().