![]() |
ATLAS Offline Software
|
A 2D linear regression calculator. More...
#include <Fit2D.h>
Classes | |
| struct | LinStats |
| A structure to hold linear fit statistics. More... | |
| struct | Point |
| A 2D point used in statistics and fit. More... | |
| struct | SimpleStats |
Public Types | |
| typedef std::vector< Point * > | PointArray |
| A vector of points. More... | |
Public Member Functions | |
| Fit2D () | |
| Constructor. More... | |
Static Public Member Functions | |
| static void | SimpleStatistics (const PointArray &points, SimpleStats &stats) |
| Calculate simple statistics for the Y values of a set of points. More... | |
| static void | fitLine (PointArray &points, double fExclChi2, bool bDump, LinStats &stats) |
| Fit a straight line through the given points. More... | |
| static void | fitPoint (PointArray &points, double fExclChi2, bool bDump, SimpleStats &stats) |
| Estimate a new point from the given points. More... | |
A 2D linear regression calculator.
The class accepts a list of X/ points and computes the least-squares straight line fit. It reports the intercept, slope and goodness of fit.
Points can be excluded from the calculation, and can also have a weight associated with them.
The class also computes simple statistics (meand, standard deviation) of the Y values.
| typedef std::vector<Point*> Muon::Fit2D::PointArray |
|
static |
Fit a straight line through the given points.
| points | The list of data points |
| fExclChi2 | CHi2 value for excluding outliers |
| bDump | Write details to log |
| stats | [output] The fit results |
|
static |
Estimate a new point from the given points.
| points | The list of data points |
| fExclChi2 | CHi2 value for excluding outliers |
| bDump | Write details to log |
| stats | [output] The fit results |
|
static |
Calculate simple statistics for the Y values of a set of points.
| points | The list of data points |
| stats | [output] The statistics results |
1.8.18