diff --git a/lib/FitInterface.cpp b/lib/FitInterface.cpp index 895e55c..206c195 100644 --- a/lib/FitInterface.cpp +++ b/lib/FitInterface.cpp @@ -191,6 +191,16 @@ const set & FitInterface::getDataIndexSet(void) const return dataIndexSet_; } +double FitInterface::getSvdTolerance(void) const +{ + return svdTol_; +} + +void FitInterface::setSvdTolerance(const double &tol) +{ + svdTol_ = tol; +} + VarName & FitInterface::xName(void) { return xName_; diff --git a/lib/FitInterface.hpp b/lib/FitInterface.hpp index 102ab6f..b23924a 100644 --- a/lib/FitInterface.hpp +++ b/lib/FitInterface.hpp @@ -77,6 +77,8 @@ public: Index getYFitSize(const Index j) const; Index getMaxDataIndex(void) const; const std::set & getDataIndexSet(void) const; + double getSvdTolerance(void) const; + void setSvdTolerance(const double &tol); VarName & xName(void); const VarName & xName(void) const; VarName & yName(void); @@ -147,6 +149,7 @@ private: bool initLayout_{true}; bool initVarMat_{true}; bool initDataCoord_{true}; + double svdTol_{1.e-10}; }; std::ostream & operator<<(std::ostream &out, FitInterface &f);