Mercurial > hg > audiodb
comparison UNIT_TEST_LSH.cpp @ 294:071a108580a4
fixed UNIT_TEST_LSH.cpp to work with refactored lshlib and fixed default LSH file FORMAT on serialization.
author | mas01mc |
---|---|
date | Wed, 30 Jul 2008 18:00:50 +0000 |
parents | d9a88cfd4ab6 |
children |
comparison
equal
deleted
inserted
replaced
293:9fd5340faffd | 294:071a108580a4 |
---|---|
49 assert(lsh); | 49 assert(lsh); |
50 cout << "MERGE WITH EXISTING LSH:" << FILENAME << endl; | 50 cout << "MERGE WITH EXISTING LSH:" << FILENAME << endl; |
51 serialized=true; | 51 serialized=true; |
52 trackBase = (lsh->get_maxp()>>N_POINT_BITS)+1; // Our encoding of tracks and points | 52 trackBase = (lsh->get_maxp()>>N_POINT_BITS)+1; // Our encoding of tracks and points |
53 } | 53 } |
54 cout << "k:" << lsh->k << " "; | 54 cout << "k:" << lsh->get_numFuns() << " "; |
55 cout << "m:" << lsh->m << "(L:" << lsh->L << ") "; | 55 cout << "L:" << lsh->get_numTables() << " "; |
56 cout << "d:" << lsh->d << " "; | 56 cout << "d:" << lsh->get_dataDim() << " "; |
57 cout << "N:" << lsh->N << " "; | 57 cout << "N:" << lsh->get_numRows() << " "; |
58 cout << "C:" << lsh->C << " "; | 58 cout << "C:" << lsh->get_numCols() << " "; |
59 cout << "R:" << lsh->get_radius() << endl; | 59 cout << "R:" << lsh->get_radius() << " "; |
60 cout << "p:" << lsh->p << endl; | 60 cout << "p:" << lsh->get_maxp() << endl; |
61 cout.flush(); | 61 cout.flush(); |
62 | 62 |
63 cout << endl << "Constructing " << nT << " tracks with " << nP << " vectors of dimension " << d << endl; | 63 cout << endl << "Constructing " << nT << " tracks with " << nP << " vectors of dimension " << d << endl; |
64 cout.flush(); | 64 cout.flush(); |
65 // Construct sets of database vectors, use one point from each set for testing | 65 // Construct sets of database vectors, use one point from each set for testing |