Mercurial > hg > audiodb
changeset 741:50a7fd50578f multiprobeLSH
fixed error in lsh.py
author | mas01mc |
---|---|
date | Mon, 04 Oct 2010 19:24:55 +0000 |
parents | 92f034aa8f28 |
children | 3e1137d12ecc |
files | lsh.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lsh.py Mon Oct 04 19:12:00 2010 +0000 +++ b/lsh.py Mon Oct 04 19:24:55 2010 +0000 @@ -425,11 +425,13 @@ # the number of LSH bucket (the T1 size). Write out the data so we can # plot it (in Matlab) def GraphicalTest(k, l, N): + global gLSHTestData numPoints = 1000 CreateRandomLSHTestData(numPoints, 3) ind = index(k, l, .1, N) for i in range(0,numPoints): ind.InsertIntoTable(i, FindLSHTestData(i)) + data=gLSHTestData i = 42 r = ind.Find(data[i,:]) fp = open('lshtestpoints.txt','w')