aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src/tests/ann/for-sift-hit.h
blob: 1f2c0f21851265699b608f6fe412cedb71e82bf5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#pragma once

struct Hit {
    uint32_t docid;
    double distance;
    Hit() : docid(0u), distance(0.0) {}
    Hit(int id, double dist) : docid(id), distance(dist) {}
};