tr_st_set_3.cc
来自「这是处理语音信号的程序」· CC 代码 · 共 41 行
CC
41 行
// file: tr_st_set_3.cc//// isip include files//#include "train_state.h"#include "train_state_constants.h" // method: set_mean_cc//// arguments:// flaot_4** mean : (input) mean vectors//// return: a logical_1 indicating success//// this method sets the mean vectors of all the mixtures//logical_1 Train_State::set_mean_cc(float_4** mean_a) { // free existing memory // if (mean_d != (float_4**)NULL) { for (int_4 i = 0; i < num_mixtures_d; i++) { delete [] mean_d[i]; } delete [] mean_d; } // allocate memory for mean and copy data // mean_d = new float_4*[num_mixtures_d]; for (int_4 i = 0; i < num_mixtures_d; i++) { mean_d[i] = new float_4[num_features_d]; memcpy(mean_d[i], mean_a[i], num_features_d * sizeof(float_4)); } // exit gracefully // return ISIP_TRUE;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?