From 624fb36957cbef51cefec2cae0e15e531c16b609 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Thu, 10 Mar 2016 15:34:38 +0000 Subject: [PATCH] FitInterface (new): total x dimension fit size fixed --- lib/FitInterface.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/lib/FitInterface.cpp b/lib/FitInterface.cpp index 069e8d7..1a61ada 100644 --- a/lib/FitInterface.cpp +++ b/lib/FitInterface.cpp @@ -150,20 +150,14 @@ Index FitInterface::getYSize(const Index j) const Index FitInterface::getXFitSize(void) const { - set 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(fitIndex.size()); + return size; } Index FitInterface::getXFitSize(const Index i) const