Mercurial > hg > audiodb
diff audioDB.cpp @ 248:5682c7d7444b
Added new query type: nsequence : this reports the n-nearest neighbours for each track in a sequence averaging query.
Next up is the same for the radius search (still accessed via nsequence but with -R set non zero)
author | mas01mc |
---|---|
date | Sun, 17 Feb 2008 14:56:02 +0000 |
parents | 2cc06e5b05a5 |
children | 4dcb09f5fe85 |
line wrap: on
line diff
--- a/audioDB.cpp Mon Dec 17 16:17:45 2007 +0000 +++ b/audioDB.cpp Sun Feb 17 14:56:02 2008 +0000 @@ -306,6 +306,8 @@ queryType=O2_POINT_QUERY; else if(strncmp(args_info.QUERY_arg, "sequence", MAXSTR)==0) queryType=O2_SEQUENCE_QUERY; + else if(strncmp(args_info.QUERY_arg, "nsequence", MAXSTR)==0) + queryType=O2_N_SEQUENCE_QUERY; else error("unsupported query type",args_info.QUERY_arg);