comparison audioDB.h @ 266:4ffa05f25a00 sampling

Add initial sampling of database distances. Zillions of FIXME comments everywhere.
author mas01cr
date Sat, 14 Jun 2008 17:13:26 +0000
parents 210b2f661b88
children 1c76d5f41708
comparison
equal deleted inserted replaced
265:235762857a70 266:4ffa05f25a00
27 #define COM_STATUS "--STATUS" 27 #define COM_STATUS "--STATUS"
28 #define COM_L2NORM "--L2NORM" 28 #define COM_L2NORM "--L2NORM"
29 #define COM_POWER "--POWER" 29 #define COM_POWER "--POWER"
30 #define COM_DUMP "--DUMP" 30 #define COM_DUMP "--DUMP"
31 #define COM_SERVER "--SERVER" 31 #define COM_SERVER "--SERVER"
32 #define COM_SAMPLE "--SAMPLE"
32 33
33 // parameters 34 // parameters
34 #define COM_CLIENT "--client" 35 #define COM_CLIENT "--client"
35 #define COM_DATABASE "--database" 36 #define COM_DATABASE "--database"
36 #define COM_QTYPE "--qtype" 37 #define COM_QTYPE "--qtype"
245 void insert_data_vectors(off_t offset, void *buffer, size_t size); 246 void insert_data_vectors(off_t offset, void *buffer, size_t size);
246 void insert(const char* dbName, const char* inFile); 247 void insert(const char* dbName, const char* inFile);
247 void batchinsert(const char* dbName, const char* inFile); 248 void batchinsert(const char* dbName, const char* inFile);
248 void query(const char* dbName, const char* inFile, adb__queryResponse *adbQueryResponse=0); 249 void query(const char* dbName, const char* inFile, adb__queryResponse *adbQueryResponse=0);
249 void status(const char* dbName, adb__statusResponse *adbStatusResponse=0); 250 void status(const char* dbName, adb__statusResponse *adbStatusResponse=0);
251 unsigned random_track(unsigned *propTable, unsigned total);
252 void sample(const char *dbName);
250 void ws_status(const char*dbName, char* hostport); 253 void ws_status(const char*dbName, char* hostport);
251 void ws_query(const char*dbName, const char *trackKey, const char* hostport); 254 void ws_query(const char*dbName, const char *trackKey, const char* hostport);
252 void l2norm(const char* dbName); 255 void l2norm(const char* dbName);
253 void power_flag(const char *dbName); 256 void power_flag(const char *dbName);
254 bool powers_acceptable(double p1, double p2); 257 bool powers_acceptable(double p1, double p2);