slev_01.cc

来自「这是一个从音频信号里提取特征参量的程序」· CC 代码 · 共 95 行

CC
95
字号
// file: $isip/class/search/SearchLevel/slev_01.cc// version: $Id: slev_01.cc,v 1.6 2002/09/15 03:46:48 parihar Exp $//// isip include files//#include "SearchLevel.h"#ifndef ISIP_CONSOLE#include <Console.h>#endif// method: debug//// arguments://  const unichar* msg: (input) message to print//// return: logical error status//// this is the debug method//boolean SearchLevel::debug(const unichar* msg_a) const {    // dump the data  //  String output;  String value;  // write the search level index  //  value.assign((long)level_index_d);  output.debugStr(name(), msg_a, L"level_index_d", value);  Console::put(output);    // write the beam pruning data  //  value.assign((boolean)use_beam_prune_d);  output.debugStr(name(), msg_a, L"use_beam_prune_d", value);  Console::put(output);  value.assign((float)beam_threshold_d);  output.debugStr(name(), msg_a, L"beam_threshold_d", value);  Console::put(output);  // write the instance pruning data  //  value.assign((boolean)use_instance_prune_d);  output.debugStr(name(), msg_a, L"use_instance_prune_d", value);  Console::put(output);  value.assign((long)instance_threshold_d);  output.debugStr(name(), msg_a, L"instance_threshold_d", value);  Console::put(output);    // write the context mode data  //  value.assign((boolean)use_context_d);  output.debugStr(name(), msg_a, L"use_context_d", value);  Console::put(output);  value.assign((long)left_context_d);  output.debugStr(name(), msg_a, L"left_context_d", value);  Console::put(output);    value.assign((long)right_context_d);  output.debugStr(name(), msg_a, L"right_context_d", value);  Console::put(output);    // write the lexical tree data  //  value.assign((boolean)use_lexical_tree_d);  output.debugStr(name(), msg_a, L"use_lexical_tree_d", value);  Console::put(output);  // write the nsymbol probability  //  value.assign((boolean)use_nsymbol_d);  output.debugStr(name(), msg_a, L"use_nsymbol_d", value);  Console::put(output);  value.assign((long)nsymbol_order_d);  output.debugStr(name(), msg_a, L"nsymbol_order_d", value);  Console::put(output);    // write the symbol occupancies  //  value.assign((boolean)write_symbol_occupancy_d);  output.debugStr(name(), msg_a, L"write_symbol_occupancy_d", value);  Console::put(output);  // exit gracefully  //  return true;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?