hsrch_07.cc
来自「这是一个从音频信号里提取特征参量的程序」· CC 代码 · 共 56 行
CC
56 行
// file: $isip/class/search/HierarchicalSearch/hsrch_07.cc// version: $Id: hsrch_07.cc,v 1.6 2002/05/27 04:48:53 alphonso Exp $//// isip include files//#include "HierarchicalSearch.h"// method: setNumLevels//// arguments:// long num_levels: (input) the number of levels to use//// return: logical error status//// set the number of search levels//boolean HierarchicalSearch::setNumLevels(long num_levels_a) { // check for out of range args // if (num_levels_a < 1) { return false; } // set the search levels // search_levels_d.setLength(num_levels_a, false); for (long i = 0; i < num_levels_a; i++) { search_levels_d(i).setLevelIndex(i); } // set the trace lists // trace_lists_d.setLength(num_levels_a, false); for (long i = 0; i < num_levels_a; i++) { trace_lists_d(i).setAllocationMode(DstrBase::USER); } // set the instance lists // instance_lists_d.setLength(num_levels_a, false); for (long i = 0; i < num_levels_a; i++) { instance_lists_d(i).setAllocationMode(DstrBase::USER); } // set the maximal trace score list // max_trace_scores_d.setLength(num_levels_a, false); max_instance_scores_d.setLength(num_levels_a, false); // exit gracefully // return true;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?