Mercurial > hg > audiodb
comparison query.cpp @ 527:7ee6a2701d90 multiprobeLSH
Added more debugging information: report numPairs returned from LSH bucket retrieval (pre-distance computation), entry/exit from audiodb_query_spec_qpointers(...)
author | mas01mc |
---|---|
date | Wed, 28 Jan 2009 18:55:46 +0000 |
parents | cc2b97d020b1 |
children | 561339c7fd26 |
comparison
equal
deleted
inserted
replaced
526:cbd5841e6b70 | 527:7ee6a2701d90 |
---|---|
447 */ | 447 */ |
448 double dist; | 448 double dist; |
449 double *dbdata = 0, *dbdata_pointer; | 449 double *dbdata = 0, *dbdata_pointer; |
450 Uns32T currentTrack = 0x80000000; // KLUDGE: Initialize with a value outside of track index range | 450 Uns32T currentTrack = 0x80000000; // KLUDGE: Initialize with a value outside of track index range |
451 Uns32T npairs = qstate->exact_evaluation_queue->size(); | 451 Uns32T npairs = qstate->exact_evaluation_queue->size(); |
452 #ifdef _LSH_DEBUG_ | |
453 cout << "Num vector pairs to evaluate: " << npairs << "..." << endl; | |
454 cout.flush(); | |
455 #endif | |
452 while(npairs--) { | 456 while(npairs--) { |
453 PointPair pp = qstate->exact_evaluation_queue->top(); | 457 PointPair pp = qstate->exact_evaluation_queue->top(); |
454 if(currentTrack != pp.trackID) { | 458 if(currentTrack != pp.trackID) { |
455 maybe_delete_array(dbdata); | 459 maybe_delete_array(dbdata); |
456 maybe_delete_array(dbpointers.l2norm_data); | 460 maybe_delete_array(dbpointers.l2norm_data); |