⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tok_trace_2.cc

📁 这是处理语音信号的程序
💻 CC
字号:
// file: tok_trace_2.cc//// isip include files//#include "token.h"#include "token_constants.h" // method: prune_cc//// arguments://  float_4 beam: (input) the beam threshold for pruning//  logical_1 flag: (input) alignment mode flag//  int_4& ndel: (output) number of deleted traces//// return: a logical_1 indicating success//// this method prunes the trace in the token//logical_1 Token::prune_cc(float_4 beam_a, logical_1 flag_a, int_4& ndel_a) {  // memory manager  //  Memory_manager* manager = Link_list::get_manager_cc();  // check if this token has been populated with traces  //  if (trace_d != (Trace*)NULL) {      // compare the trace score    //    if (trace_d->get_score_cc() < beam_a) {            // adjust ref counts if needed      //      if (flag_a == ISIP_TRUE) {	trace_d->decr_ref_cc();      }            // prune the trace      //      manager->delete_cc(trace_d);      trace_d = (Trace*)NULL;            // increment deletion count      //      ndel_a++;    }  }    // exit gracefully  //  return ISIP_TRUE;}

⌨️ 快捷键说明

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