A structure to hold linear fit statistics.
More...
#include <Fit2D.h>
A structure to hold linear fit statistics.
Definition at line 76 of file Fit2D.h.
◆ LinStats()
Muon::Fit2D::LinStats::LinStats |
( |
| ) |
|
|
inline |
Constructor.
Definition at line 163 of file Fit2D.h.
◆ clear()
void Muon::Fit2D::LinStats::clear |
( |
| ) |
|
|
inline |
Clear the statistics before a new fit.
Definition at line 172 of file Fit2D.h.
◆ eval()
void Muon::Fit2D::LinStats::eval |
( |
double |
fX, |
|
|
double & |
fY, |
|
|
double & |
fYerr |
|
) |
| const |
Evaluate a point along the fitted line.
- Parameters
-
fX | The X value of the point to project |
fY | [output] The projected Y value |
fYerr | [output] The error of the projected Y value |
Definition at line 26 of file Fit2D.cxx.
◆ toString()
std::string Muon::Fit2D::LinStats::toString |
( |
| ) |
const |
Get a string representation of the fit parameters.
Definition at line 31 of file Fit2D.cxx.
◆ fChi2
double Muon::Fit2D::LinStats::fChi2 |
Chi-squared of the fit.
Definition at line 82 of file Fit2D.h.
◆ fCov
double Muon::Fit2D::LinStats::fCov[2][2] |
The parameter covariance matrix.
Definition at line 81 of file Fit2D.h.
◆ fIntercept
double Muon::Fit2D::LinStats::fIntercept |
Intercept of the fit line.
Definition at line 79 of file Fit2D.h.
◆ fSlope
double Muon::Fit2D::LinStats::fSlope |
Slope of the fit line.
Definition at line 80 of file Fit2D.h.
int Muon::Fit2D::LinStats::n |
Number of points.
Definition at line 78 of file Fit2D.h.
The documentation for this struct was generated from the following files: