#include "components/zucchini/targets_affinity.h"
#include <algorithm>
#include "base/check_op.h"
#include "components/zucchini/equivalence_map.h"
namespace zucchini {
namespace {
constexpr uint32_t kNoLabel = …;
}
TargetsAffinity::TargetsAffinity() = default;
TargetsAffinity::~TargetsAffinity() = default;
void TargetsAffinity::InferFromSimilarities(
const EquivalenceMap& equivalences,
const std::deque<offset_t>& old_targets,
const std::deque<offset_t>& new_targets) { … }
uint32_t TargetsAffinity::AssignLabels(double min_affinity,
std::vector<uint32_t>* old_labels,
std::vector<uint32_t>* new_labels) { … }
double TargetsAffinity::AffinityBetween(key_t old_key, key_t new_key) const { … }
}