Mercurial > hg > audiodb
changeset 297:7907b50d0995
set the default flag value to 'off' for --lsh_on_disk and made lsh_in_core the compliment of this value
author | mas01mc |
---|---|
date | Fri, 01 Aug 2008 15:13:21 +0000 |
parents | f922c234462f |
children | 3bb4d850557b |
files | audioDB.cpp gengetopt.in |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/audioDB.cpp Fri Aug 01 15:04:31 2008 +0000 +++ b/audioDB.cpp Fri Aug 01 15:13:21 2008 +0000 @@ -375,7 +375,7 @@ dbName=args_info.database_arg; // Whether to store LSH hash tables for query in core (FORMAT2) - lsh_in_core = args_info.lsh_on_disk_flag; // This flag is set to 0 if on_disk requested + lsh_in_core = !args_info.lsh_on_disk_flag; // This flag is set to 0 if on_disk requested lsh_param_w = args_info.lsh_w_arg; if(!(lsh_param_w>0 && lsh_param_w<=O2_SERIAL_MAX_BINWIDTH)) @@ -467,7 +467,7 @@ } // Whether to pre-load LSH hash tables for query (default on, if flag set then off) - lsh_in_core = args_info.lsh_on_disk_flag; + lsh_in_core = !args_info.lsh_on_disk_flag; // Whether to perform exact evaluation of points returned by LSH lsh_exact = args_info.lsh_exact_flag;
--- a/gengetopt.in Fri Aug 01 15:04:31 2008 +0000 +++ b/gengetopt.in Fri Aug 01 15:13:21 2008 +0000 @@ -69,7 +69,7 @@ option "lsh_b" - "number of tracks per indexing iteration" int typestr="size" default="500" dependon="INDEX" optional option "lsh_ncols" - "number of columns (collisions) to allocate in LSH serialization" int typestr="size" default="250" dependon="INDEX" optional option "lsh_exact" - "use exact evaluation of points retrieved by LSH." flag off dependon="QUERY" optional -option "lsh_on_disk" - "Construct LSH hash tables for on-disk query (INDEX/QUERY)" flag on optional +option "lsh_on_disk" - "Construct LSH hash tables for on-disk query (INDEX/QUERY)" flag off optional option "lsh_use_u_functions" - "use m independent hash functions combinatorically to approximate L independent hash functions." flag off optional section "Normalization control parameters" sectiondesc="These parameters control the normalization of feaures at query time\n"