mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 00:45:36 +00:00
FitInterface: test functions for correlations
This commit is contained in:
parent
c52c80ceae
commit
69ac2d5c82
@ -411,6 +411,39 @@ bool FitInterface::isFitPoint(const Index k, const Index j) const
|
|||||||
return yDataIndex_[j].at(k);
|
return yDataIndex_[j].at(k);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool FitInterface::isXXCorrelated(const Index r1, const Index i1,
|
||||||
|
const Index r2, const Index i2) const
|
||||||
|
{
|
||||||
|
array<Index, 4> c{{r1, i1, r2, i2}};
|
||||||
|
auto it = xxCorr_.find(c);
|
||||||
|
|
||||||
|
return (it != xxCorr_.end());
|
||||||
|
}
|
||||||
|
|
||||||
|
bool FitInterface::isYYCorrelated(const Index k1, const Index j1,
|
||||||
|
const Index k2, const Index j2) const
|
||||||
|
{
|
||||||
|
array<Index, 4> c{{k1, j1, k2, j2}};
|
||||||
|
auto it = yyCorr_.find(c);
|
||||||
|
|
||||||
|
return (it != yyCorr_.end());
|
||||||
|
}
|
||||||
|
|
||||||
|
bool FitInterface::isXYCorrelated(const Index r, const Index i,
|
||||||
|
const Index k, const Index j) const
|
||||||
|
{
|
||||||
|
array<Index, 4> c{{r, i, k, j}};
|
||||||
|
auto it = xyCorr_.find(c);
|
||||||
|
|
||||||
|
return (it != xyCorr_.end());
|
||||||
|
}
|
||||||
|
|
||||||
|
bool FitInterface::hasCorrelations(void) const
|
||||||
|
{
|
||||||
|
return ((xxCorr_.size() != 0) or (yyCorr_.size() != 0)
|
||||||
|
or (xyCorr_.size() != 0));
|
||||||
|
}
|
||||||
|
|
||||||
// make correlation filter for fit variance matrix /////////////////////////////
|
// make correlation filter for fit variance matrix /////////////////////////////
|
||||||
DMat FitInterface::makeCorrFilter(void)
|
DMat FitInterface::makeCorrFilter(void)
|
||||||
{
|
{
|
||||||
|
@ -108,6 +108,13 @@ public:
|
|||||||
bool isXExact(const Index i) const;
|
bool isXExact(const Index i) const;
|
||||||
bool isXUsed(const Index r, const Index i, const bool inFit = true) const;
|
bool isXUsed(const Index r, const Index i, const bool inFit = true) const;
|
||||||
bool isFitPoint(const Index k, const Index j) const;
|
bool isFitPoint(const Index k, const Index j) const;
|
||||||
|
bool isXXCorrelated(const Index r1, const Index i1, const Index r2,
|
||||||
|
const Index i2) const;
|
||||||
|
bool isYYCorrelated(const Index k1, const Index j1, const Index k2,
|
||||||
|
const Index j2) const;
|
||||||
|
bool isXYCorrelated(const Index r, const Index i, const Index k,
|
||||||
|
const Index j) const;
|
||||||
|
bool hasCorrelations(void) const;
|
||||||
// make correlation filter for fit variance matrix
|
// make correlation filter for fit variance matrix
|
||||||
DMat makeCorrFilter(void);
|
DMat makeCorrFilter(void);
|
||||||
// schedule variance matrix initialization
|
// schedule variance matrix initialization
|
||||||
|
Loading…
Reference in New Issue
Block a user