Mercurial > hg > audiodb
comparison audioDB.h @ 20:0519fc406b29
New major version, mostly tested: both sequence queries (-Q seq --pointnn N and -Q seq --radius R) now work, all reported distances are Euclidean.
author | mas01mc |
---|---|
date | Mon, 13 Aug 2007 23:25:16 +0000 |
parents | 999c9c216565 |
children | 0357114be285 |
comparison
equal
deleted
inserted
replaced
19:0c5884204732 | 20:0519fc406b29 |
---|---|
215 struct timeval tv2; | 215 struct timeval tv2; |
216 | 216 |
217 // private methods | 217 // private methods |
218 void error(const char* a, const char* b = ""); | 218 void error(const char* a, const char* b = ""); |
219 void pointQuery(const char* dbName, const char* inFile, adb__queryResult *adbQueryResult=0); | 219 void pointQuery(const char* dbName, const char* inFile, adb__queryResult *adbQueryResult=0); |
220 void sequenceQuery(const char* dbName, const char* inFile, adb__queryResult *adbQueryResult=0); | |
221 void trackPointQuery(const char* dbName, const char* inFile, adb__queryResult *adbQueryResult=0); | 220 void trackPointQuery(const char* dbName, const char* inFile, adb__queryResult *adbQueryResult=0); |
222 void trackSequenceQuery(const char* dbName, const char* inFile, adb__queryResult *adbQueryResult=0); | 221 void trackSequenceQueryNN(const char* dbName, const char* inFile, adb__queryResult *adbQueryResult=0); |
223 void trackSequenceQueryEuc(const char* dbName, const char* inFile, adb__queryResult *adbQueryResult=0); | 222 void trackSequenceQueryRad(const char* dbName, const char* inFile, adb__queryResult *adbQueryResult=0); |
224 | 223 |
225 void initTables(const char* dbName, const char* inFile); | 224 void initTables(const char* dbName, const char* inFile); |
226 void NBestMatchedFilter(); | |
227 void unitNorm(double* X, unsigned d, unsigned n, double* qNorm); | 225 void unitNorm(double* X, unsigned d, unsigned n, double* qNorm); |
228 void unitNormAndInsertL2(double* X, unsigned dim, unsigned n, unsigned append); | 226 void unitNormAndInsertL2(double* X, unsigned dim, unsigned n, unsigned append); |
229 void normalize(double* X, int dim, int n); | 227 void normalize(double* X, int dim, int n); |
230 void normalize(double* X, int dim, int n, double minval, double maxval); | 228 void normalize(double* X, int dim, int n, double minval, double maxval); |
231 void insertTimeStamps(unsigned n, ifstream* timesFile, double* timesdata); | 229 void insertTimeStamps(unsigned n, ifstream* timesFile, double* timesdata); |
243 void status(const char* dbName); | 241 void status(const char* dbName); |
244 void ws_status(const char*dbName, char* hostport); | 242 void ws_status(const char*dbName, char* hostport); |
245 void ws_query(const char*dbName, const char *trackKey, const char* hostport); | 243 void ws_query(const char*dbName, const char *trackKey, const char* hostport); |
246 void l2norm(const char* dbName); | 244 void l2norm(const char* dbName); |
247 void dump(const char* dbName); | 245 void dump(const char* dbName); |
248 void deleteDB(const char* dbName, const char* inFile); | |
249 | 246 |
250 // web services | 247 // web services |
251 void startServer(); | 248 void startServer(); |
252 | 249 |
253 }; | 250 }; |