?? gmm.h
字號:
/*
//
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright(c) 1999-2006 Intel Corporation. All Rights Reserved.
//
// Intel(R) Integrated Performance Primitives Speech Processing Sample for Windows*
//
// By downloading and installing this sample, you hereby agree that the
// accompanying Materials are being provided to you under the terms and
// conditions of the End User License Agreement for the Intel(R) Integrated
// Performance Primitives product previously accepted by you. Please refer
// to the file ippEULA.rtf located in the root directory of your Intel(R) IPP
// product installation for more information.
//
*/
//---------------------------------------------------------------------
// GMM training class header
//---------------------------------------------------------------------
class MFCC;
class GMM{
private:
float *mean,*cvar,*det,*weight,*mfccs;
int gaussianNum; // Gaussian number
int width; // actual mean,var,feature vector length
int step; // row step in mean, cvar & input feature array
int frameNum; // frame number in training data
int cutEnergy; // flag to cut the last MFCC vector energy element
void InitArays(int step,int height);// allocate mean,var,tmp,det,gaussWeights
void EvalDet();
public:
int GaussianNum(void) {return gaussianNum;}
void TrainMix(int trainCycles);
void InitMixWithCDBK(char *trainf,int maxMixSize,
bool CutEnergy); // build codebook and initialize mixture
float LogLHPerFrame(char *TestFile); // evaluate likelihood per frame
void WriteMix(char *outfile);
void ReadMix(char *infile);
GMM(){};
~GMM(){
ippsFree(mfccs);
ippsFree(cvar);
ippsFree(mean);
ippsFree(det);
ippsFree(weight);
}
};
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -