Skip to content

Commit

Permalink
补上Adaptive的内容
Browse files Browse the repository at this point in the history
  • Loading branch information
lineclappe committed Nov 9, 2015
1 parent d7d69b4 commit 1ee018d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Data_Analyse/get_result.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
%Print out the results under different truncated level T
function res = get_result(index,gdata,T)
num_img = size(gdata,1);
num_level = length(T)+1;
res = zeros(num_level,1);
for i = 1:num_level - 1
value = CalculateMAP(index,gdata,T(i));
res(i) = value;
end
res(num_level) = CalculateMAP(index,gdata,num_img);

17 changes: 17 additions & 0 deletions Visual Rank/QDETune.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
function [rel,d] = QDETune(simmat)
%Tuning strategies
maxCos = 0;
for i = 1:100
Cos = QDE_Estimation(simmat,i);
if Cos > maxCos
maxCos = Cos;
rel = i;
end
end
if rel <=10
d = 0.15;
elseif rel <=50
d = 0.4;
else
d=0.8;
end

0 comments on commit 1ee018d

Please sign in to comment.