📄 cfir1_c.mht
字号:
From: <由 Microsoft Internet Explorer 5 保存>
Subject:
Date: Wed, 27 Sep 2006 22:38:56 +0800
MIME-Version: 1.0
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.oxbad.com/DSP/maindoc/arithmetic_source/c/CFIR1.C
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<META content=3D"MSHTML 6.00.2900.2963" name=3DGENERATOR></HEAD>
<BODY><PRE>/* cfir1.c - FIR filter implemented with circular delay-line =
buffer */
void wrap();
double cfir1(M, h, w, p, x)
double *h, *w, **p, x;
int M;
{ =20
int i;
double y;
*(*p)-- =3D x;
wrap(M, w, p); /* \(p\) now points to =
\(s\sb{M}\) */
for (y=3D0, h+=3DM, i=3DM; i>=3D0; i--) { /* \(h\) =
starts at \(h\sb{M}\) */
y +=3D (*h--) * (*(*p)--);
wrap(M, w, p);
}
return y;
}
</PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -