Mercurial > hg > audiodb
comparison audioDB.h @ 144:6ae986868114 powertable
Hack in power table filling for single track insert.
author | mas01cr |
---|---|
date | Tue, 30 Oct 2007 15:13:01 +0000 |
parents | c74048e9b569 |
children | 7162a8e9ab12 |
comparison
equal
deleted
inserted
replaced
143:9bcece53de9e | 144:6ae986868114 |
---|---|
123 ifstream *trackFile; | 123 ifstream *trackFile; |
124 const char *command; | 124 const char *command; |
125 const char *output; | 125 const char *output; |
126 const char *timesFileName; | 126 const char *timesFileName; |
127 ifstream *timesFile; | 127 ifstream *timesFile; |
128 const char *powerFileName; | |
129 int powerfd; | |
128 | 130 |
129 int dbfid; | 131 int dbfid; |
130 int infid; | 132 int infid; |
131 char* db; | 133 char* db; |
132 char* indata; | 134 char* indata; |
152 unsigned sequenceLength; | 154 unsigned sequenceLength; |
153 unsigned sequenceHop; | 155 unsigned sequenceHop; |
154 unsigned queryPoint; | 156 unsigned queryPoint; |
155 unsigned usingQueryPoint; | 157 unsigned usingQueryPoint; |
156 unsigned usingTimes; | 158 unsigned usingTimes; |
159 unsigned usingPower; | |
157 unsigned isClient; | 160 unsigned isClient; |
158 unsigned isServer; | 161 unsigned isServer; |
159 unsigned port; | 162 unsigned port; |
160 double timesTol; | 163 double timesTol; |
161 double radius; | 164 double radius; |
174 void initDBHeader(const char *dbName, bool forWrite); | 177 void initDBHeader(const char *dbName, bool forWrite); |
175 void initTables(const char* dbName, bool forWrite, const char* inFile); | 178 void initTables(const char* dbName, bool forWrite, const char* inFile); |
176 void unitNorm(double* X, unsigned d, unsigned n, double* qNorm); | 179 void unitNorm(double* X, unsigned d, unsigned n, double* qNorm); |
177 void unitNormAndInsertL2(double* X, unsigned dim, unsigned n, unsigned append); | 180 void unitNormAndInsertL2(double* X, unsigned dim, unsigned n, unsigned append); |
178 void insertTimeStamps(unsigned n, ifstream* timesFile, double* timesdata); | 181 void insertTimeStamps(unsigned n, ifstream* timesFile, double* timesdata); |
182 void insertPowerData(unsigned n, int powerfd, double *powerdata); | |
179 unsigned getKeyPos(char* key); | 183 unsigned getKeyPos(char* key); |
180 public: | 184 public: |
181 | 185 |
182 audioDB(const unsigned argc, char* const argv[]); | 186 audioDB(const unsigned argc, char* const argv[]); |
183 audioDB(const unsigned argc, char* const argv[], adb__queryResponse *adbQueryResponse); | 187 audioDB(const unsigned argc, char* const argv[], adb__queryResponse *adbQueryResponse); |
212 trackFile(0), \ | 216 trackFile(0), \ |
213 command(0), \ | 217 command(0), \ |
214 output(0), \ | 218 output(0), \ |
215 timesFileName(0), \ | 219 timesFileName(0), \ |
216 timesFile(0), \ | 220 timesFile(0), \ |
221 powerFileName(0), \ | |
222 powerfd(0), \ | |
217 dbfid(0), \ | 223 dbfid(0), \ |
218 infid(0), \ | 224 infid(0), \ |
219 db(0), \ | 225 db(0), \ |
220 indata(0), \ | 226 indata(0), \ |
221 dbH(0), \ | 227 dbH(0), \ |
233 sequenceLength(16), \ | 239 sequenceLength(16), \ |
234 sequenceHop(1), \ | 240 sequenceHop(1), \ |
235 queryPoint(0), \ | 241 queryPoint(0), \ |
236 usingQueryPoint(0), \ | 242 usingQueryPoint(0), \ |
237 usingTimes(0), \ | 243 usingTimes(0), \ |
244 usingPower(0), \ | |
238 isClient(0), \ | 245 isClient(0), \ |
239 isServer(0), \ | 246 isServer(0), \ |
240 port(0), \ | 247 port(0), \ |
241 timesTol(0.1), \ | 248 timesTol(0.1), \ |
242 radius(0) | 249 radius(0) |