stdafx.h
资源名称:VQ-DHMM.rar [点击查看]
上传用户:avbj512
上传日期:2013-09-18
资源大小:6239k
文件大小:2k
源码类别:
DSP编程
开发平台:
Visual C++
- // stdafx.h : include file for standard system include files,
- // or project specific include files that are used frequently, but
- // are changed infrequently
- //
- #if !defined(AFX_STDAFX_H__FDB0F7ED_EBFC_44B9_AE26_C9555627B039__INCLUDED_)
- #define AFX_STDAFX_H__FDB0F7ED_EBFC_44B9_AE26_C9555627B039__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
- #include <afx.h>
- #include <afxwin.h> // MFC core and standard components
- #include <afxext.h> // MFC extensions
- #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
- #ifndef _AFX_NO_AFXCMN_SUPPORT
- #include <afxcmn.h> // MFC support for Windows Common Controls
- #endif // _AFX_NO_AFXCMN_SUPPORT
- #include <iostream>
- // TODO: reference additional headers your program requires here
- #include "DXDXA_MFC.h"
- // 定义一些数据类型的基本常量
- #define MAX_DOUBLE_VALUE (1.7E+308)
- #define MIN_DOUBLE_VALUE (1.7E-308)
- #define EPSILON_DOUBLE_VALUE (1.0E-5)
- #define LOG_SCALE (8)
- #define MAX_LONG_VALUE (0x7FFFFFFFL)
- #define MIN_LONG_VALUE (0x80000000L)
- #define MAX_SHORT_VALUE (0x7FFF)
- #define MIN_SHORT_VALUE (0x8000)
- #define WORD_ITEM_NUM (59)
- // 定义一些DEBUG相关的宏
- #define DEBUG_PRINTF printf
- #define ELAPSED_TIME_OUTPUT() debug_show_time_elapsed()
- #define PRO_LOG debug_program_log
- #define RESULT_LOG debug_result_log
- // 定义一个词条的数据结构
- typedef struct tag_WORD_SAMPLE {
- int n_Feature_Sequence_Len;
- DYNA_2DIM_DOUBLE_ARRAY d2dda_Feature_Sequence;
- int n_Feature_Dim;
- int * pn_VQed_Feature_Sequence;
- DYNA_2DIM_DOUBLE_ARRAY d2dda_Gamma;
- } WORD_SAMPLE;
- // 定义一个DHMM模型的数据结构
- typedef struct tag_DHMM_MODEL {
- int n_State_Num;
- int n_Code_Book_Size;
- double * pdPi;
- DYNA_2DIM_DOUBLE_ARRAY d2dda_A;
- DYNA_2DIM_DOUBLE_ARRAY d2dda_B;
- } DHMM_MODEL;
- // 函数功能:显示程序到目前执行的时间
- void debug_show_time_elapsed(void);
- // 函数功能:同时向程序运行LOG和屏幕显示信息
- int debug_program_log(const char * fmt, ... );
- // 函数功能:向程序Result文件写入信息
- int debug_result_log(const char * fmt, ... );
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_STDAFX_H__FDB0F7ED_EBFC_44B9_AE26_C9555627B039__INCLUDED_)