mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 00:45:36 +00:00
FitInterface (new): total x dimension fit size fixed
This commit is contained in:
parent
325a6d3db1
commit
624fb36957
@ -150,20 +150,14 @@ Index FitInterface::getYSize(const Index j) const
|
|||||||
|
|
||||||
Index FitInterface::getXFitSize(void) const
|
Index FitInterface::getXFitSize(void) const
|
||||||
{
|
{
|
||||||
set<Index> fitIndex;
|
Index size = 0;
|
||||||
|
|
||||||
for (Index j = 0; j < getNYDim(); ++j)
|
for (Index i = 0; i < getNXDim(); ++i)
|
||||||
{
|
{
|
||||||
for (auto &p: yDataIndex_[j])
|
size += getXFitSize(i);
|
||||||
{
|
|
||||||
if (p.second)
|
|
||||||
{
|
|
||||||
fitIndex.insert(p.first);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return static_cast<Index>(fitIndex.size());
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
Index FitInterface::getXFitSize(const Index i) const
|
Index FitInterface::getXFitSize(const Index i) const
|
||||||
|
Loading…
Reference in New Issue
Block a user