comparison audioDB.h @ 423:b09d2eb1a2b2 api-inversion

Cheap hackery abounds. Include an accumulator into the query_loop chain. Somewhat surprisingly, very few tests fail, and those that do are due to over-specific reporting requirements in the case of ties, so rewrite those tests to be more permissive. There are probably codepaths which ignore the accumulator completely; they will still work, because the accumulator will return zero points when it is asked to ->get_points().
author mas01cr
date Wed, 24 Dec 2008 10:55:08 +0000
parents 166312a124bc
children d65410f4bb85
comparison
equal deleted inserted replaced
422:a7d61291fbda 423:b09d2eb1a2b2
341 void initInputFile(const char *inFile, bool loadData = true); 341 void initInputFile(const char *inFile, bool loadData = true);
342 void initTables(const char* dbName, const char* inFile = 0); 342 void initTables(const char* dbName, const char* inFile = 0);
343 void initTablesFromKey(const char* dbName, const Uns32T queryIndex); 343 void initTablesFromKey(const char* dbName, const Uns32T queryIndex);
344 void unitNorm(double* X, unsigned d, unsigned n, double* qNorm); 344 void unitNorm(double* X, unsigned d, unsigned n, double* qNorm);
345 void unitNormAndInsertL2(double* X, unsigned dim, unsigned n); 345 void unitNormAndInsertL2(double* X, unsigned dim, unsigned n);
346 unsigned getKeyPos(char* key); 346 unsigned getKeyPos(const char* key);
347 void prefix_name(char** const name, const char* prefix); 347 void prefix_name(char** const name, const char* prefix);
348 348
349 public: 349 public:
350 audioDB(const unsigned argc, const char *argv[]); 350 audioDB(const unsigned argc, const char *argv[]);
351 audioDB(const unsigned argc, const char *argv[], adb__queryResponse *adbQueryResponse); 351 audioDB(const unsigned argc, const char *argv[], adb__queryResponse *adbQueryResponse);