diff --git a/lib/FitInterface.cpp b/lib/FitInterface.cpp index 85e26a1..8a90f37 100644 --- a/lib/FitInterface.cpp +++ b/lib/FitInterface.cpp @@ -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; diff --git a/lib/FitInterface.hpp b/lib/FitInterface.hpp index ff401e4..11e6564 100644 --- a/lib/FitInterface.hpp +++ b/lib/FitInterface.hpp @@ -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);