tr_st_set_1.cc

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

CC
36
字号
// file: tr_st_set_1.cc//// isip include files//#include "train_state.h"#include "train_state_constants.h" // method: set_weights_cc//// arguments://  float_4* weights : (input) mixture weights //// return: a logical_1 indicating success//// this method sets the mixture weights//logical_1 Train_State::set_weights_cc(float_4* weights_a) {  // delete existing memory  //  if (weights_d != (float_4*)NULL) {    delete [] weights_d;  }  weights_d = (float_4*)NULL;    // allocate memory for mixture weights and copy data  //  weights_d = new float_4[num_mixtures_d];  memcpy(weights_d, weights_a, num_mixtures_d * sizeof(float_4));  // exit gracefully  //  return ISIP_TRUE;}

⌨️ 快捷键说明

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