aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/histogram/adaptive/common.h
diff options
context:
space:
mode:
authorsvirg <svirg@yandex-team.ru>2022-02-10 16:50:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:56 +0300
commit6b417b6bdff55c365f5835bb18c5a8053b975801 (patch)
tree879a609bb97de971de25f96711cb5e510013cbd6 /library/cpp/histogram/adaptive/common.h
parent0f79d22ae2d0756b8c99339136f54b76c1a7aee2 (diff)
downloadydb-6b417b6bdff55c365f5835bb18c5a8053b975801.tar.gz
Restoring authorship annotation for <svirg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/histogram/adaptive/common.h')
-rw-r--r--library/cpp/histogram/adaptive/common.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/histogram/adaptive/common.h b/library/cpp/histogram/adaptive/common.h
index c0f7dfb26b..31a5f2d2f8 100644
--- a/library/cpp/histogram/adaptive/common.h
+++ b/library/cpp/histogram/adaptive/common.h
@@ -1,12 +1,12 @@
-#pragma once
-
+#pragma once
+
#include <utility>
-
-namespace NKiwiAggr {
+
+namespace NKiwiAggr {
using TWeightedValue = std::pair<double, double>; // value, weight
- using TQualityFunction = TWeightedValue (*)(const TWeightedValue&, const TWeightedValue&);
-
- TWeightedValue CalcDistanceQuality(const TWeightedValue& left, const TWeightedValue& right);
- TWeightedValue CalcWeightQuality(const TWeightedValue& left, const TWeightedValue& right);
- TWeightedValue CalcWardQuality(const TWeightedValue& left, const TWeightedValue& right);
-}
+ using TQualityFunction = TWeightedValue (*)(const TWeightedValue&, const TWeightedValue&);
+
+ TWeightedValue CalcDistanceQuality(const TWeightedValue& left, const TWeightedValue& right);
+ TWeightedValue CalcWeightQuality(const TWeightedValue& left, const TWeightedValue& right);
+ TWeightedValue CalcWardQuality(const TWeightedValue& left, const TWeightedValue& right);
+}