diff 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
line wrap: on
line diff
--- a/audioDB.h	Wed Oct 31 10:20:09 2007 +0000
+++ b/audioDB.h	Wed Oct 31 12:01:28 2007 +0000
@@ -164,6 +164,12 @@
   unsigned port;
   double timesTol;
   double radius;
+
+  bool use_absolute_threshold;
+  double absolute_threshold;
+  bool use_relative_threshold;
+  double relative_threshold;
+
   
   // Timers
   struct timeval tv1;
@@ -203,6 +209,7 @@
   void ws_query(const char*dbName, const char *trackKey, const char* hostport);
   void l2norm(const char* dbName);
   void power_flag(const char *dbName);
+  bool powers_acceptable(double p1, double p2);
   void dump(const char* dbName);
 
   // web services
@@ -250,4 +257,8 @@
   isServer(0), \
   port(0), \
   timesTol(0.1), \
-  radius(0)
+  radius(0), \
+  use_absolute_threshold(false), \
+  absolute_threshold(0.0), \
+  use_relative_threshold(false), \
+  relative_threshold(0.0)