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

📄 filterdlg.h

📁 FIR 有限脉冲数字滤波器设计。另外还有无IIR设计的程序
💻 H
字号:
// filterDlg.h : header file
//

#if !defined(AFX_FILTERDLG_H__A4463679_02B4_42B3_BBD3_4AF709D16B15__INCLUDED_)
#define AFX_FILTERDLG_H__A4463679_02B4_42B3_BBD3_4AF709D16B15__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CFilterDlg dialog

class CFilterDlg : public CDialog
{
// Construction
public:
	void highPass();
	void bandPass();
	void lowPass();
	void drawCurve(CWnd* pwnd, double* v, int nStart, int nEnd, COLORREF thisColor);
	CFilterDlg(CWnd* pParent = NULL);	// standard constructor

	//yyyyyyyyyyyyyy
	double x[1000], y[1000];//输入和输出信号
	double PI, Ts, f, w;//输入信号的角频率
	int Fs, N, n, nStart;//采样频率、时间点数、输出可算的起始时刻点(它等于滤波器的阶数), 比如:
	              //8阶滤波器从n=8个时刻开始y[n]可算, 其前的y[n]都人为置为0

	BOOL isFirstPoint;
	//yyyyyyyyyyyyyy

// Dialog Data
	//{{AFX_DATA(CFilterDlg)
	enum { IDD = IDD_FILTER_DIALOG };
	CSpinButtonCtrl	myspin1;
	CStatic	myStaticFrequency;
	CStatic	mypicture3;
	CStatic	mypicture2;
	CStatic	mypicture1;
	CStatic	mypicture0;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFilterDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CFilterDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	afx_msg void OnBUTTONReset();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FILTERDLG_H__A4463679_02B4_42B3_BBD3_4AF709D16B15__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -