Mercurial > hg > audiodb
comparison audioDB.h @ 147:a564e6d7a30c powertable
Add absolute and relative threshold arguments, and initialize variables
based on them.
Also initialize the power file for queries.
author | mas01cr |
---|---|
date | Wed, 31 Oct 2007 12:01:28 +0000 |
parents | c9c508be69b3 |
children | 8c1c6a5c1cc3 |
comparison
equal
deleted
inserted
replaced
146:c9c508be69b3 | 147:a564e6d7a30c |
---|---|
162 unsigned isClient; | 162 unsigned isClient; |
163 unsigned isServer; | 163 unsigned isServer; |
164 unsigned port; | 164 unsigned port; |
165 double timesTol; | 165 double timesTol; |
166 double radius; | 166 double radius; |
167 | |
168 bool use_absolute_threshold; | |
169 double absolute_threshold; | |
170 bool use_relative_threshold; | |
171 double relative_threshold; | |
172 | |
167 | 173 |
168 // Timers | 174 // Timers |
169 struct timeval tv1; | 175 struct timeval tv1; |
170 struct timeval tv2; | 176 struct timeval tv2; |
171 | 177 |
201 void status(const char* dbName, adb__statusResponse *adbStatusResponse=0); | 207 void status(const char* dbName, adb__statusResponse *adbStatusResponse=0); |
202 void ws_status(const char*dbName, char* hostport); | 208 void ws_status(const char*dbName, char* hostport); |
203 void ws_query(const char*dbName, const char *trackKey, const char* hostport); | 209 void ws_query(const char*dbName, const char *trackKey, const char* hostport); |
204 void l2norm(const char* dbName); | 210 void l2norm(const char* dbName); |
205 void power_flag(const char *dbName); | 211 void power_flag(const char *dbName); |
212 bool powers_acceptable(double p1, double p2); | |
206 void dump(const char* dbName); | 213 void dump(const char* dbName); |
207 | 214 |
208 // web services | 215 // web services |
209 void startServer(); | 216 void startServer(); |
210 | 217 |
248 usingPower(0), \ | 255 usingPower(0), \ |
249 isClient(0), \ | 256 isClient(0), \ |
250 isServer(0), \ | 257 isServer(0), \ |
251 port(0), \ | 258 port(0), \ |
252 timesTol(0.1), \ | 259 timesTol(0.1), \ |
253 radius(0) | 260 radius(0), \ |
261 use_absolute_threshold(false), \ | |
262 absolute_threshold(0.0), \ | |
263 use_relative_threshold(false), \ | |
264 relative_threshold(0.0) |