comparison audioDB.h @ 426:4a22a0bdf9a9 api-inversion

Deal with audioDB::UnitNorm Deal with it by removing it completely, that is. New inline function audiodb_l2norm_buffer(), replacing the three instances of that functionality dotted throughout the code.
author mas01cr
date Wed, 24 Dec 2008 10:55:20 +0000
parents d65410f4bb85
children adaa6a688a04
comparison
equal deleted inserted replaced
425:d65410f4bb85 426:4a22a0bdf9a9
338 void initRNG(); 338 void initRNG();
339 void initDBHeader(const char *dbName); 339 void initDBHeader(const char *dbName);
340 void initInputFile(const char *inFile, bool loadData = true); 340 void initInputFile(const char *inFile, bool loadData = true);
341 void initTables(const char* dbName, const char* inFile = 0); 341 void initTables(const char* dbName, const char* inFile = 0);
342 void initTablesFromKey(const char* dbName, const Uns32T queryIndex); 342 void initTablesFromKey(const char* dbName, const Uns32T queryIndex);
343 void unitNorm(double* X, unsigned d, unsigned n, double* qNorm);
344 void unitNormAndInsertL2(double* X, unsigned dim, unsigned n);
345 unsigned getKeyPos(const char* key); 343 unsigned getKeyPos(const char* key);
346 void prefix_name(char** const name, const char* prefix); 344 void prefix_name(char** const name, const char* prefix);
347 345
348 public: 346 public:
349 audioDB(const unsigned argc, const char *argv[]); 347 audioDB(const unsigned argc, const char *argv[]);