diff options
| author | elsol <[email protected]> | 2022-02-10 16:50:56 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:56 +0300 | 
| commit | 0f22df667bcefaade4cc86ed8df31d6f87fa7098 (patch) | |
| tree | 5d9785f9a46104e99770c12694689bba8a382d48 /library/cpp/histogram/adaptive | |
| parent | a53448e7a898701b4411c68f0d438e703872f1a1 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 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 41caac5ba68..117506f06cb 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()) { | 
