#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 31 of file LinearFitErrorsIn2Coord.cc.
References mps_fire::i, slope(), x, and y.
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, L1EGammaCrystalsEmulatorProducer_cfi::scale, mathSSE::sqrt(), variance(), x, and y.
Referenced by intercept().
|
private |
Definition at line 48 of file LinearFitErrorsIn2Coord.cc.
References dqmMemoryStats::float, mps_fire::i, callgraph::m2, and x.
Referenced by slope(), and average.Average::uncertainty().