common.h 510 B

123456789101112
  1. #pragma once
  2. #include <utility>
  3. namespace NKiwiAggr {
  4. using TWeightedValue = std::pair<double, double>; // value, weight
  5. using TQualityFunction = TWeightedValue (*)(const TWeightedValue&, const TWeightedValue&);
  6. TWeightedValue CalcDistanceQuality(const TWeightedValue& left, const TWeightedValue& right);
  7. TWeightedValue CalcWeightQuality(const TWeightedValue& left, const TWeightedValue& right);
  8. TWeightedValue CalcWardQuality(const TWeightedValue& left, const TWeightedValue& right);
  9. }