1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-09-20 05:25:37 +01:00

FitInterface: more convenient function to assume correlated data

This commit is contained in:
Antonin Portelli 2014-04-17 12:18:49 +01:00
parent 39012e4b73
commit 98567eb4d6
2 changed files with 12 additions and 0 deletions

View File

@ -74,6 +74,17 @@ void FitInterface::assumeDataCorrelated(const Index k1, const Index k2,
isDataCorr_(k2, k1) = val;
}
void FitInterface::assumeDataCorrelated(const bool isCorrelated)
{
FOR_MAT(isDataCorr_, k1, k2)
{
if (k1 != k2)
{
assumeDataCorrelated(k1, k2, isCorrelated);
}
}
}
void FitInterface::fitPoint(const Index i, const bool isFitPoint)
{
isFitPoint_(i) = (isFitPoint) ? 1 : 0;

View File

@ -48,6 +48,7 @@ public:
const bool isCorrelated = true);
void assumeDataCorrelated(const Index k1, const Index k2,
const bool isCorrelated = true);
void assumeDataCorrelated(const bool isCorrelated = true);
void fitPoint(const Index k, const bool isFitPoint = true);
void fitPointRange(const Index k1, const Index k2,
const bool isFitPoint = true);