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 | d7b26a7860e235a7b00891e1ffbc256c7c976f7d (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/histogram/adaptive/common.h | |
parent | 6b417b6bdff55c365f5835bb18c5a8053b975801 (diff) | |
download | ydb-d7b26a7860e235a7b00891e1ffbc256c7c976f7d.tar.gz |
Restoring authorship annotation for <svirg@yandex-team.ru>. Commit 2 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 31a5f2d2f8..c0f7dfb26b 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); +} |