# HG changeset patch # User mas01mc # Date 1286220295 0 # Node ID 50a7fd50578f8dfeddfb25a17f8d10f38f7abe8c # Parent 92f034aa8f283cfe6e53f1f7932d0cdd263d2353 fixed error in lsh.py diff -r 92f034aa8f28 -r 50a7fd50578f lsh.py --- 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')