mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2025-05-01 01:25:56 +01:00
FitInterface: more convenient function to assume correlated data
This commit is contained in:
parent
39012e4b73
commit
98567eb4d6
@ -74,6 +74,17 @@ void FitInterface::assumeDataCorrelated(const Index k1, const Index k2,
|
|||||||
isDataCorr_(k2, k1) = val;
|
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)
|
void FitInterface::fitPoint(const Index i, const bool isFitPoint)
|
||||||
{
|
{
|
||||||
isFitPoint_(i) = (isFitPoint) ? 1 : 0;
|
isFitPoint_(i) = (isFitPoint) ? 1 : 0;
|
||||||
|
@ -48,6 +48,7 @@ public:
|
|||||||
const bool isCorrelated = true);
|
const bool isCorrelated = true);
|
||||||
void assumeDataCorrelated(const Index k1, const Index k2,
|
void assumeDataCorrelated(const Index k1, const Index k2,
|
||||||
const bool isCorrelated = true);
|
const bool isCorrelated = true);
|
||||||
|
void assumeDataCorrelated(const bool isCorrelated = true);
|
||||||
void fitPoint(const Index k, const bool isFitPoint = true);
|
void fitPoint(const Index k, const bool isFitPoint = true);
|
||||||
void fitPointRange(const Index k1, const Index k2,
|
void fitPointRange(const Index k1, const Index k2,
|
||||||
const bool isFitPoint = true);
|
const bool isFitPoint = true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user