⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gmm.h

📁 Intel开发的IPP库的应用实例
💻 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 + -