Mercurial > hg > audiodb
diff 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 |
line wrap: on
line diff
--- a/audioDB.h Mon Apr 14 15:36:29 2008 +0000 +++ b/audioDB.h Fri Apr 25 17:40:19 2008 +0000 @@ -78,6 +78,9 @@ #define O2_TRACK_QUERY (0x10U) #define O2_N_SEQUENCE_QUERY (0x20U) +// Distance types +#define EUCLIDEAN (0x1U) +#define EARTHMOVERS (0x2U) // Error Codes #define O2_ERR_KEYNOTFOUND (0xFFFFFF00) @@ -172,6 +175,7 @@ unsigned verbosity; // how much do we want to know? off_t size; // given size (for creation) unsigned queryType; // point queries default + unsigned distType; // euclidean default, added to allow EMD switch unsigned pointNN; // how many point NNs ? unsigned trackNN; // how many track NNs ? unsigned sequenceLength; @@ -283,6 +287,7 @@ verbosity(1), \ size(O2_DEFAULTDBSIZE), \ queryType(O2_POINT_QUERY), \ + distType(EUCLIDEAN), \ pointNN(O2_DEFAULT_POINTNN), \ trackNN(O2_DEFAULT_TRACKNN), \ sequenceLength(16), \