9 #ifndef MKNN_EVALUATION_ANSWERS_HPP
10 #define MKNN_EVALUATION_ANSWERS_HPP
16 #include "../metricknn_impl.hpp"
29 const TypeObject& getIdObject()
const;
44 long long rank_position;
47 template<
typename TypeQuery,
typename TypeObject>
class MknnAnswers {
51 void addAnswer(TypeQuery id_query, TypeObject id_object,
52 long long rank_position);
53 long long getNumRanks();
54 std::set<TypeQuery> getQueryNames();
55 std::vector<MknnRankedAnswer<TypeObject>> &getQueryAnswers(
58 std::map<TypeQuery, std::vector<MknnRankedAnswer<TypeObject>>>answers;
Definition: mevaluation_answers.hpp:19
bool operator<(const MknnRankedAnswer &other) const
comparator by rank.
Definition: mevaluation_answers.cpp:42
Definition: mevaluation_answers.hpp:47
Definition: mevaluation_answers.hpp:18
long long getRank() const
the rank, 0 is the first.
Definition: mevaluation_answers.cpp:38