Home » Source Code » Hash algorithms » lshcode/lshprep.m

lshcode/lshprep.m ( File view )

  • By 毛宁 2014-10-28
  • View(s):33
  • Download(s):0
  • Point(s): 1
			function T = lshprep(type,Is,B,varargin)
% T = lshprep(TYPE,I,B,...)
%    Prepares the set of hash tables T using LSH functions I.
%    The data is converted to unary encoding *implicitly*
%    B is the max. number of items to look at in the union of buckets;
%    default is B=inf (i.e., no limit)
%    On return, the hash table T{
} has following fields:
%      type - the LSH scheme used
%      buckets - the identities of non-empty buckets;
%        buckets(i,:) is the key of the i-th bucket
%      bhash - the secondary hash table used to map the buckets;
%        it's a sparse vector, with bhash{
} = j 
%      Index - indices within the full data set; 
%        Index{
} is a vector with indices of elements in i-th bucket
%      I - the functions produced by lshfunc
%      Args - whatever was passed in additional args to lshprep
%      B - the requested maximal number of elements in a single bucket (may be inf)
%      count - the # of indexed elements    
% (C) Greg Shakhnarovich, TTI-Chicago  (2008)

if (nargin < 3)
  B = inf;

l = length
(Please download the complete source code to view)
Expand> <Close

Want complete source code? Download it here

Point(s): 1

0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
0.00 B2009-06-26|22:00
findbucket.m653.00 B2008-11-10|12:45
lpnorm.m3.79 kB2008-11-10|12:45
lsh.m3.18 kB2008-11-10|12:45
lshfunc.m2.94 kB2008-11-10|12:45
lshhash.m957.00 B2008-11-10|12:45
lshins.m3.21 kB2008-11-10|12:45
lshlookup.m3.07 kB2009-06-26|21:35
lshprep.m1.56 kB2008-11-10|12:45
lshstats.m2.36 kB2009-06-26|21:36
processRange.m1.01 kB2008-11-10|12:45
README10.58 kB2009-06-26|22:00
Sponsored links

lshcode/lshprep.m (12.66 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point


Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com


CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D