diff options
author | victor-k <victor-k@yandex-team.ru> | 2022-02-10 16:50:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:38 +0300 |
commit | f632afcab870d2327aaa8388ceeb7aeb2bb6a1c1 (patch) | |
tree | 7bf4ee5af2c901bfd7715a527d63fad8eabf861d /library/cpp/histogram/adaptive/auto_histogram.h | |
parent | fdec3824b69496e472972311be8d8157a8bb99db (diff) | |
download | ydb-f632afcab870d2327aaa8388ceeb7aeb2bb6a1c1.tar.gz |
Restoring authorship annotation for <victor-k@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/histogram/adaptive/auto_histogram.h')
-rw-r--r-- | library/cpp/histogram/adaptive/auto_histogram.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/histogram/adaptive/auto_histogram.h b/library/cpp/histogram/adaptive/auto_histogram.h index 9fdf0b9abe..abd4c17603 100644 --- a/library/cpp/histogram/adaptive/auto_histogram.h +++ b/library/cpp/histogram/adaptive/auto_histogram.h @@ -14,25 +14,25 @@ namespace NKiwiAggr { private: static const size_t DEFAULT_INTERVALS = 100; - ui64 Id; + ui64 Id; size_t Intervals; THolder<IHistogram> HistogramImpl; public: - TAutoHistogram(size_t intervals, ui64 id = 0) { + TAutoHistogram(size_t intervals, ui64 id = 0) { Y_UNUSED(intervals); Y_UNUSED(id); ythrow yexception() << "Empty constructor is not defined for TAutoHistogram"; } - TAutoHistogram(const THistogram& histo, size_t defaultIntervals = DEFAULT_INTERVALS, ui64 defaultId = 0) + TAutoHistogram(const THistogram& histo, size_t defaultIntervals = DEFAULT_INTERVALS, ui64 defaultId = 0) : Id(defaultId) , Intervals(defaultIntervals) { FromProto(histo); } - TAutoHistogram(IHistogram* histo, size_t defaultIntervals = DEFAULT_INTERVALS, ui64 defaultId = 0) { + TAutoHistogram(IHistogram* histo, size_t defaultIntervals = DEFAULT_INTERVALS, ui64 defaultId = 0) { Y_UNUSED(histo); Y_UNUSED(defaultIntervals); Y_UNUSED(defaultId); @@ -88,11 +88,11 @@ namespace NKiwiAggr { HistogramImpl->ToProto(histo); } - virtual void SetId(ui64 id) { + virtual void SetId(ui64 id) { HistogramImpl->SetId(id); } - virtual ui64 GetId() { + virtual ui64 GetId() { return HistogramImpl->GetId(); } @@ -131,14 +131,14 @@ namespace NKiwiAggr { virtual double CalcLowerBound(double sum) { return HistogramImpl->CalcLowerBound(sum); } - - virtual double CalcUpperBoundSafe(double sum) { - return HistogramImpl->CalcUpperBoundSafe(sum); - } - - virtual double CalcLowerBoundSafe(double sum) { - return HistogramImpl->CalcLowerBoundSafe(sum); - } + + virtual double CalcUpperBoundSafe(double sum) { + return HistogramImpl->CalcUpperBoundSafe(sum); + } + + virtual double CalcLowerBoundSafe(double sum) { + return HistogramImpl->CalcLowerBoundSafe(sum); + } virtual void PrecomputePartialSums() { return HistogramImpl->PrecomputePartialSums(); |