Permalink
Browse files

Fixed major bug when calculating distributions using multiprobe. The

\Delta' function was incorrect and is now fixed.  No other changes are
necessary.  Testing continues.
  • Loading branch information...
1 parent 57680c2 commit a2a09b549050271935b7da550a0f9854892f7ec8 @MalcolmSlaney MalcolmSlaney committed Jan 31, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 CalculateLSHParameters.m
View
@@ -208,7 +208,8 @@
% Now do the same thing for the multiprobe buckets
wMatrix2 = zeros(length(xp), length(wList));
for i=1:length(wList)
- wMatrix2(:,i) = max(0, 1-abs(xp'-wList(i))/wList(i));
+ % wMatrix2(:,i) = max(0, 1-abs(xp'-wList(i))/wList(i));
+ wMatrix2(:,i) = max(0, min(1, (1.5 + -2*abs(xp'/wList(i)-.75))));
end
binAnyProb2 = projAnyPDF' * wMatrix2 * xpBinWidth;
binNnProb2 = projNnPDF' * wMatrix2 * xpBinWidth;

0 comments on commit a2a09b5

Please sign in to comment.