?? tr_st_set_3.cc
字號:
// 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -