diff options
author | svirg <svirg@yandex-team.ru> | 2022-02-10 16:50:56 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:56 +0300 |
commit | 6b417b6bdff55c365f5835bb18c5a8053b975801 (patch) | |
tree | 879a609bb97de971de25f96711cb5e510013cbd6 /library/cpp/histogram/adaptive/common.h | |
parent | 0f79d22ae2d0756b8c99339136f54b76c1a7aee2 (diff) | |
download | ydb-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.h | 20 |
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); +} |