📄 gmm.h
字号:
// GMM.h: interface for the CGMM class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GMM_H__4FF55782_60D3_459D_981C_2BFC0CF6EA93__INCLUDED_)
#define AFX_GMM_H__4FF55782_60D3_459D_981C_2BFC0CF6EA93__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
typedef struct _GMMSTRUCT {
char cname[20];
char cparm[40];
int *iStreamInfo; // i.e. iStreamInfo[] = { 4, 19 ,19 ,19 ,2};
int iVectorSize; // eaquals sum of iStreamInfo
int iNumStates; // Always 1(+2); if not 1(HMM case), report error
int *iNumMixtures; // Mixtures of each stream [stream]
double *dSWeights; // Weights of each stream [stream]
double **dDet; // [stream,mixture]
double **dMixtureWeight; // [stream,mixture]
double ***dMean; // [stream,mixture,dimension]
double ***dCovar; // [stream,mixture,dimension]
}GMMSTRUCT;
class CGMM
{
public:
CGMM();
virtual ~CGMM();
bool bLoaded;
int LoadGMMSet(char*fname);
int FreeGMMSet();
int LScaleProb(double Scale,int index,double *Result,int mixture);
int LScaleProb(double Scale,int istrm,int idx,double *Result);
double LVectorProb(float *Feature_Vector,int *Trigger_Vector);
//public:
GMMSTRUCT inst;
};
#endif // !defined(AFX_GMM_H__4FF55782_60D3_459D_981C_2BFC0CF6EA93__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -