Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Fixed major bug when calculating distributions using multiprobe. The
Browse files Browse the repository at this point in the history
\Delta' function was incorrect and is now fixed.  No other changes are
necessary.  Testing continues.
  • Loading branch information
MalcolmSlaney committed Jan 31, 2012
1 parent 57680c2 commit a2a09b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CalculateLSHParameters.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a2a09b5

Please sign in to comment.