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:
@@ -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
|
||||
};
|
||||
|
||||
/******************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user