Mercurial > hg > audiodb
annotate tests/pointset_test/lshRho.m @ 295:9347d74a2578
added cap on number of vectors per track to index: this cap is set relative to the maximum pointID available in the dual <trackID,pointID> indexing scheme that is used to identify points and tracks using a single 32-bit unsigned integer that is passed to lshlib.
author | mas01mc |
---|---|
date | Thu, 31 Jul 2008 19:26:04 +0000 |
parents | 8fcc7c590a0e |
children |
rev | line source |
---|---|
mas01mc@285 | 1 function Rho = lshRho(w,c) |
mas01mc@285 | 2 if nargin<2, c=1;end |
mas01mc@285 | 3 if nargin<1, w=4;end |
mas01mc@285 | 4 |
mas01mc@287 | 5 P1 = lshP(w,1); |
mas01mc@287 | 6 P2 = lshP(w,c); |
mas01mc@285 | 7 |
mas01mc@287 | 8 Rho = log(1./P1) ./ log(1./P2); |
mas01mc@285 | 9 |
mas01mc@285 | 10 endfunction |