#include <LinearFitErrorsIn2Coord.h>
Public Member Functions | |
float | intercept (const std::vector< float > &x, const std::vector< float > &y, int ndat, const std::vector< float > &sigx, const std::vector< float > &sigy) const |
float | slope (const std::vector< float > &x, const std::vector< float > &y, int ndat, const std::vector< float > &sigx, const std::vector< float > &sigy) const |
Private Member Functions | |
float | variance (const std::vector< float > &x, int ndat) const |
Straight line fit for data with errors on both coordinates source: Numerical Recipes
Definition at line 10 of file LinearFitErrorsIn2Coord.h.
float LinearFitErrorsIn2Coord::intercept | ( | const std::vector< float > & | x, |
const std::vector< float > & | y, | ||
int | ndat, | ||
const std::vector< float > & | sigx, | ||
const std::vector< float > & | sigy | ||
) | const |
Approached intercept computed with approached slope
Definition at line 33 of file LinearFitErrorsIn2Coord.cc.
float LinearFitErrorsIn2Coord::slope | ( | const std::vector< float > & | x, |
const std::vector< float > & | y, | ||
int | ndat, | ||
const std::vector< float > & | sigx, | ||
const std::vector< float > & | sigy | ||
) | const |
Approached slope:
Definition at line 5 of file LinearFitErrorsIn2Coord.cc.
References LinearFit::fit(), i, mathSSE::sqrt(), variance(), and ExpressReco_HICollisions_FallBack::y.
Referenced by python.Vispa.Views.LineDecayView.DecayLine::containsPoint(), intercept(), and python.Vispa.Views.LineDecayView.DecayLine::transform().
|
private |