FE_window.h
上传用户:italyroyal
上传日期:2013-05-06
资源大小:473k
文件大小:1k
- ///////////////////////////////////////////////////////////////////////////////
- // This is a part of the Feature program.
- // Version: 1.0
- // Date: February 22, 2003
- // Programmer: Oh-Wook Kwon
- // Copyright(c) 2003 Oh-Wook Kwon. All rights reserved. owkwon@ucsd.edu
- ///////////////////////////////////////////////////////////////////////////////
-
- #ifndef _FE_WINDOW_H_
- #define _FE_WINDOW_H_
- #include "FE_common.h"
- enum WindowKind {
- WIN_HAMMING, WIN_HANNING, WIN_TRI, WIN_RECT, WIN_BARTLETT
- };
- class FeWindow
- {
- public:
- FeWindow();
- ~FeWindow();
- vector<float> hamm_window;
- vector<float> hann_window;
- vector<float> tri_window;
- int Windowing(float *inputA, int inputN, string& wkind);
- int Windowing(float *inputA, int inputN, WindowKind wkind);
- int do_hamm_window(float *inputA, int inputN);
- int do_hann_window(float *inputA, int inputN);
- int do_rect_window(float *inputA, int inputN);
- int do_tri_window(float *inputA, int inputN);
- };
- #endif