1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2025-04-11 03:20:46 +01:00

FitInterface: control of SVD tolerance

This commit is contained in:
Antonin Portelli 2016-04-05 14:29:34 +01:00
parent 939520db24
commit 2fca987e8f
2 changed files with 13 additions and 0 deletions

View File

@ -191,6 +191,16 @@ const set<Index> & FitInterface::getDataIndexSet(void) const
return dataIndexSet_; return dataIndexSet_;
} }
double FitInterface::getSvdTolerance(void) const
{
return svdTol_;
}
void FitInterface::setSvdTolerance(const double &tol)
{
svdTol_ = tol;
}
VarName & FitInterface::xName(void) VarName & FitInterface::xName(void)
{ {
return xName_; return xName_;

View File

@ -77,6 +77,8 @@ public:
Index getYFitSize(const Index j) const; Index getYFitSize(const Index j) const;
Index getMaxDataIndex(void) const; Index getMaxDataIndex(void) const;
const std::set<Index> & getDataIndexSet(void) const; const std::set<Index> & getDataIndexSet(void) const;
double getSvdTolerance(void) const;
void setSvdTolerance(const double &tol);
VarName & xName(void); VarName & xName(void);
const VarName & xName(void) const; const VarName & xName(void) const;
VarName & yName(void); VarName & yName(void);
@ -147,6 +149,7 @@ private:
bool initLayout_{true}; bool initLayout_{true};
bool initVarMat_{true}; bool initVarMat_{true};
bool initDataCoord_{true}; bool initDataCoord_{true};
double svdTol_{1.e-10};
}; };
std::ostream & operator<<(std::ostream &out, FitInterface &f); std::ostream & operator<<(std::ostream &out, FitInterface &f);