Mercurial > hg > audiodb
comparison audioDB.h @ 401:a8a5f2ca5380 api-inversion
Invert audioDB::l2norm / audiodb_l2norm()
We now have some functions that shouldn't be exported to the user of the
library, but are used in more than one source file; case in point:
audiodb_sync_header(). Make a new audioDB-internals.h file for them,
and while we're at it put the scary mmap()-related macros in there too.
We can't delete audioDB::unitNormAndInsertL2() quite yet, because it's
used in insertion too, but we can delete the non-append branches.
That's not very much code to lose, but every little helps.
author | mas01cr |
---|---|
date | Wed, 03 Dec 2008 14:53:20 +0000 |
parents | bc7a821004bb |
children | 1fb8bee777e5 |
comparison
equal
deleted
inserted
replaced
400:8c7453fb5bd9 | 401:a8a5f2ca5380 |
---|---|
334 void initDBHeader(const char *dbName); | 334 void initDBHeader(const char *dbName); |
335 void initInputFile(const char *inFile, bool loadData = true); | 335 void initInputFile(const char *inFile, bool loadData = true); |
336 void initTables(const char* dbName, const char* inFile = 0); | 336 void initTables(const char* dbName, const char* inFile = 0); |
337 void initTablesFromKey(const char* dbName, const Uns32T queryIndex); | 337 void initTablesFromKey(const char* dbName, const Uns32T queryIndex); |
338 void unitNorm(double* X, unsigned d, unsigned n, double* qNorm); | 338 void unitNorm(double* X, unsigned d, unsigned n, double* qNorm); |
339 void unitNormAndInsertL2(double* X, unsigned dim, unsigned n, unsigned append); | 339 void unitNormAndInsertL2(double* X, unsigned dim, unsigned n); |
340 void insertTimeStamps(unsigned n, std::ifstream* timesFile, double* timesdata); | 340 void insertTimeStamps(unsigned n, std::ifstream* timesFile, double* timesdata); |
341 void insertPowerData(unsigned n, int powerfd, double *powerdata); | 341 void insertPowerData(unsigned n, int powerfd, double *powerdata); |
342 unsigned getKeyPos(char* key); | 342 unsigned getKeyPos(char* key); |
343 void prefix_name(char** const name, const char* prefix); | 343 void prefix_name(char** const name, const char* prefix); |
344 | 344 |