diff options
| author | elsol <[email protected]> | 2022-02-10 16:50:57 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:57 +0300 | 
| commit | 9cc851b34f89d2b8ba19d91e816bddf9c17a8f2c (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/histogram/adaptive | |
| parent | 0f22df667bcefaade4cc86ed8df31d6f87fa7098 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/histogram/adaptive')
| -rw-r--r-- | library/cpp/histogram/adaptive/multi_histogram.h | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/library/cpp/histogram/adaptive/multi_histogram.h b/library/cpp/histogram/adaptive/multi_histogram.h index 117506f06cb..41caac5ba68 100644 --- a/library/cpp/histogram/adaptive/multi_histogram.h +++ b/library/cpp/histogram/adaptive/multi_histogram.h @@ -78,14 +78,14 @@ namespace NKiwiAggr {              return IHistogramPtr();          } -        double GetMaxHistoSum() const {  -            double sum = 0.0;  -            for (THistogramsMap::const_iterator it = Histograms.begin(); it != Histograms.end(); ++it) {  +        double GetMaxHistoSum() const { +            double sum = 0.0; +            for (THistogramsMap::const_iterator it = Histograms.begin(); it != Histograms.end(); ++it) {                  sum = std::max(sum, it->second->GetSum()); -            }  -            return sum;  -        }  -  +            } +            return sum; +        } +          bool Empty() {              for (THistogramsMap::iterator it = Histograms.begin(); it != Histograms.end(); ++it) {                  if (!it->second->Empty()) { | 
