comparison audioDB.cpp @ 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
comparison
equal deleted inserted replaced
296:f922c234462f 297:7907b50d0995
373 error("INDEXing requires 1 <= sequenceLength <= 1000"); 373 error("INDEXing requires 1 <= sequenceLength <= 1000");
374 command=COM_INDEX; 374 command=COM_INDEX;
375 dbName=args_info.database_arg; 375 dbName=args_info.database_arg;
376 376
377 // Whether to store LSH hash tables for query in core (FORMAT2) 377 // Whether to store LSH hash tables for query in core (FORMAT2)
378 lsh_in_core = args_info.lsh_on_disk_flag; // This flag is set to 0 if on_disk requested 378 lsh_in_core = !args_info.lsh_on_disk_flag; // This flag is set to 0 if on_disk requested
379 379
380 lsh_param_w = args_info.lsh_w_arg; 380 lsh_param_w = args_info.lsh_w_arg;
381 if(!(lsh_param_w>0 && lsh_param_w<=O2_SERIAL_MAX_BINWIDTH)) 381 if(!(lsh_param_w>0 && lsh_param_w<=O2_SERIAL_MAX_BINWIDTH))
382 error("Indexing parameter w out of range (0.0 < w <= 100.0)"); 382 error("Indexing parameter w out of range (0.0 < w <= 100.0)");
383 383
465 if(queryPoint<0 || queryPoint >10000) 465 if(queryPoint<0 || queryPoint >10000)
466 error("queryPoint out of range: 0 <= queryPoint <= 10000"); 466 error("queryPoint out of range: 0 <= queryPoint <= 10000");
467 } 467 }
468 468
469 // Whether to pre-load LSH hash tables for query (default on, if flag set then off) 469 // Whether to pre-load LSH hash tables for query (default on, if flag set then off)
470 lsh_in_core = args_info.lsh_on_disk_flag; 470 lsh_in_core = !args_info.lsh_on_disk_flag;
471 471
472 // Whether to perform exact evaluation of points returned by LSH 472 // Whether to perform exact evaluation of points returned by LSH
473 lsh_exact = args_info.lsh_exact_flag; 473 lsh_exact = args_info.lsh_exact_flag;
474 474
475 pointNN = args_info.pointnn_arg; 475 pointNN = args_info.pointnn_arg;