tr_path_0.cc

来自「这是处理语音信号的程序」· CC 代码 · 共 47 行

CC
47 行
字号
// file: tr_path_0.cc//// isip include files//#include "trace.h"#include "trace_constants.h"// method: project_trace_cc//// arguments://  Trace* trace : (input) the trace so far//  float_4 score : (input) the incremental score//// return: a logical_1 indicating status//// this method projects the trace onwards and updates the score//logical_1 Trace::project_trace_cc(Trace* trace_a, float_4 score_a) {  // make sure the input trace is valid  //  if (trace_a == (Trace*)NULL) {    return ISIP_FALSE;  }  // copy the parameters  //  level_d = trace_a->level_d;  lex_next_d = trace_a->lex_next_d;  state_index_d = trace_a->state_index_d;    phone_index_d = trace_a->phone_index_d;      // set the path history information  //  instance_d = trace_a->instance_d;  history_d = trace_a->history_d;  // add incremental score  //  score_d = trace_a->score_d + score_a;      // exit gracefully  //  return ISIP_TRUE;}

⌨️ 快捷键说明

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