1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2026-01-26 17:24:43 +00:00

New methods in XYSampleData class to skip fits that are non-converging/large chi2PerDof.

This is tracked by boolean goodFit_.
This commit is contained in:
2021-05-20 11:04:21 +01:00
parent 1b12f2ca2d
commit 9e8d534635
2 changed files with 43 additions and 15 deletions

View File

@@ -91,6 +91,8 @@ public:
const DMat & getXYVar(const Index i, const Index j);
DVec getXError(const Index i);
DVec getYError(const Index j);
bool checkFit(); // check fit candidate based on chi2PerDof
void checkChi2PerDof(double Chi2PerDof);
// get total fit variance matrix and its pseudo-inverse
const DMat & getFitVarMat(void);
const DMat & getFitVarMatPInv(void);
@@ -133,6 +135,7 @@ private:
Index nSample_, dataSample_{central};
bool initData_{true}, computeVarMat_{true};
bool initXMap_{true};
bool goodFit_{true}; // used to break minimisation if central sample chi2PerDof is bad
};
/******************************************************************************