aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/histogram/adaptive/block_histogram.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/histogram/adaptive/block_histogram.cpp
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/histogram/adaptive/block_histogram.cpp')
-rw-r--r--library/cpp/histogram/adaptive/block_histogram.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/histogram/adaptive/block_histogram.cpp b/library/cpp/histogram/adaptive/block_histogram.cpp
index 7003255916..6586d13ff6 100644
--- a/library/cpp/histogram/adaptive/block_histogram.cpp
+++ b/library/cpp/histogram/adaptive/block_histogram.cpp
@@ -149,7 +149,7 @@ namespace NKiwiAggr {
histo.GetType() == HT_ADAPTIVE_WARD_HISTOGRAM ||
histo.GetType() == HT_ADAPTIVE_HISTOGRAM)
{
- Y_VERIFY(histo.FreqSize() == histo.PositionSize(), "Corrupted histo");
+ Y_VERIFY(histo.FreqSize() == histo.PositionSize(), "Corrupted histo");
for (size_t j = 0; j < histo.FreqSize(); ++j) {
double value = histo.GetPosition(j);
double weight = histo.GetFreq(j);
@@ -189,7 +189,7 @@ namespace NKiwiAggr {
}
void TBlockHistogram::Merge(TVector<IHistogramPtr> histogramsToMerge) {
- Y_UNUSED(histogramsToMerge);
+ Y_UNUSED(histogramsToMerge);
ythrow yexception() << "IHistogram::Merge(TVector<IHistogramPtr>) is not defined for TBlockHistogram";
}
@@ -286,7 +286,7 @@ namespace NKiwiAggr {
}
void TBlockHistogram::SortAndShrink(size_t intervals, bool final) {
- Y_VERIFY(intervals > 0);
+ Y_VERIFY(intervals > 0);
if (Bins.size() <= intervals) {
return;
@@ -382,7 +382,7 @@ namespace NKiwiAggr {
ui32 a = (ui32)(bins[b].Prev() - bins);
ui32 c = (ui32)(bins[b].Next() - bins);
ui32 d = (ui32)(bins[b].Next()->Next() - bins);
- Y_VERIFY(Bins[c].second != -1);
+ Y_VERIFY(Bins[c].second != -1);
double mass = Bins[b].second + Bins[c].second;
Bins[c].first = (Bins[b].first * Bins[b].second + Bins[c].first * Bins[c].second) / mass;
@@ -411,48 +411,48 @@ namespace NKiwiAggr {
Bins.resize(pos);
PrevSize = pos;
- Y_VERIFY(pos == intervals);
+ Y_VERIFY(pos == intervals);
}
double TBlockHistogram::GetSumInRange(double leftBound, double rightBound) {
- Y_UNUSED(leftBound);
- Y_UNUSED(rightBound);
+ Y_UNUSED(leftBound);
+ Y_UNUSED(rightBound);
ythrow yexception() << "Method is not implemented for TBlockHistogram";
return 0;
}
double TBlockHistogram::GetSumAboveBound(double bound) {
- Y_UNUSED(bound);
+ Y_UNUSED(bound);
ythrow yexception() << "Method is not implemented for TBlockHistogram";
return 0;
}
double TBlockHistogram::GetSumBelowBound(double bound) {
- Y_UNUSED(bound);
+ Y_UNUSED(bound);
ythrow yexception() << "Method is not implemented for TBlockHistogram";
return 0;
}
double TBlockHistogram::CalcUpperBound(double sum) {
- Y_UNUSED(sum);
+ Y_UNUSED(sum);
ythrow yexception() << "Method is not implemented for TBlockHistogram";
return 0;
}
double TBlockHistogram::CalcLowerBound(double sum) {
- Y_UNUSED(sum);
+ Y_UNUSED(sum);
ythrow yexception() << "Method is not implemented for TBlockHistogram";
return 0;
}
double TBlockHistogram::CalcUpperBoundSafe(double sum) {
- Y_UNUSED(sum);
+ Y_UNUSED(sum);
ythrow yexception() << "Method is not implemented for TBlockHistogram";
return 0;
}
double TBlockHistogram::CalcLowerBoundSafe(double sum) {
- Y_UNUSED(sum);
+ Y_UNUSED(sum);
ythrow yexception() << "Method is not implemented for TBlockHistogram";
return 0;
}
@@ -528,7 +528,7 @@ namespace NKiwiAggr {
}
void TBlockWardHistogram::FastGreedyShrink(size_t intervals) {
- Y_VERIFY(intervals > 0);
+ Y_VERIFY(intervals > 0);
if (Bins.size() <= intervals) {
return;