1
0
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:
Antonin Portelli 2016-03-10 15:34:38 +00:00
parent 325a6d3db1
commit 624fb36957

View File

@ -150,20 +150,14 @@ Index FitInterface::getYSize(const Index j) 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])
{
if (p.second)
{
fitIndex.insert(p.first);
}
}
size += getXFitSize(i);
}
return static_cast<Index>(fitIndex.size());
return size;
}
Index FitInterface::getXFitSize(const Index i) const