comparison audioDB.h @ 258:d12364d8b9ea adding-emd

added cmdline stubs for distance switch and skeleton methods for EMD
author map01bf
date Fri, 25 Apr 2008 17:40:19 +0000
parents bfd34e8c84fb
children
comparison
equal deleted inserted replaced
255:bfd34e8c84fb 258:d12364d8b9ea
76 #define O2_POINT_QUERY (0x4U) 76 #define O2_POINT_QUERY (0x4U)
77 #define O2_SEQUENCE_QUERY (0x8U) 77 #define O2_SEQUENCE_QUERY (0x8U)
78 #define O2_TRACK_QUERY (0x10U) 78 #define O2_TRACK_QUERY (0x10U)
79 #define O2_N_SEQUENCE_QUERY (0x20U) 79 #define O2_N_SEQUENCE_QUERY (0x20U)
80 80
81 // Distance types
82 #define EUCLIDEAN (0x1U)
83 #define EARTHMOVERS (0x2U)
81 84
82 // Error Codes 85 // Error Codes
83 #define O2_ERR_KEYNOTFOUND (0xFFFFFF00) 86 #define O2_ERR_KEYNOTFOUND (0xFFFFFF00)
84 87
85 // Macros 88 // Macros
170 173
171 // Flags and parameters 174 // Flags and parameters
172 unsigned verbosity; // how much do we want to know? 175 unsigned verbosity; // how much do we want to know?
173 off_t size; // given size (for creation) 176 off_t size; // given size (for creation)
174 unsigned queryType; // point queries default 177 unsigned queryType; // point queries default
178 unsigned distType; // euclidean default, added to allow EMD switch
175 unsigned pointNN; // how many point NNs ? 179 unsigned pointNN; // how many point NNs ?
176 unsigned trackNN; // how many track NNs ? 180 unsigned trackNN; // how many track NNs ?
177 unsigned sequenceLength; 181 unsigned sequenceLength;
178 unsigned sequenceHop; 182 unsigned sequenceHop;
179 bool normalizedDistance; 183 bool normalizedDistance;
281 powerTableLength(0), \ 285 powerTableLength(0), \
282 l2normTableLength(0), \ 286 l2normTableLength(0), \
283 verbosity(1), \ 287 verbosity(1), \
284 size(O2_DEFAULTDBSIZE), \ 288 size(O2_DEFAULTDBSIZE), \
285 queryType(O2_POINT_QUERY), \ 289 queryType(O2_POINT_QUERY), \
290 distType(EUCLIDEAN), \
286 pointNN(O2_DEFAULT_POINTNN), \ 291 pointNN(O2_DEFAULT_POINTNN), \
287 trackNN(O2_DEFAULT_TRACKNN), \ 292 trackNN(O2_DEFAULT_TRACKNN), \
288 sequenceLength(16), \ 293 sequenceLength(16), \
289 sequenceHop(1), \ 294 sequenceHop(1), \
290 normalizedDistance(true), \ 295 normalizedDistance(true), \