From b44da2a2ab11425961014a39994484c92626ce58 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Tue, 2 Jun 2015 18:10:33 +0800 Subject: misc --- model/rankaccu.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'model/rankaccu.cpp') diff --git a/model/rankaccu.cpp b/model/rankaccu.cpp index 8404abf..0f55e26 100644 --- a/model/rankaccu.cpp +++ b/model/rankaccu.cpp @@ -128,4 +128,23 @@ void rank_CMC(RidList &D,const std::vector pred,CMC & cmc) { break; // account only for the first match; } } +} + +void rank_pair(RidList &D,const vector pred,vector &pair) +{ + int n =D.getSize(),q=D.getqSize(); + pair.clear(); + for (int i=0;i0) { + corr = j; + break; + } + + for (int j=0;j