-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7d69b4
commit 1ee018d
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |