#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.
References mps_fire::i, and slope().
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(), mps_fire::i, Scenarios_cff::scale, mathSSE::sqrt(), variance(), and y.
Referenced by Vispa.Views.LineDecayView.DecayLine::containsPoint(), intercept(), and Vispa.Views.LineDecayView.DecayLine::transform().
|
private |
Definition at line 53 of file LinearFitErrorsIn2Coord.cc.
References objects.autophobj::float, and mps_fire::i.
Referenced by slope(), and average.Average::uncertainty().