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

📄 tapi2_c.mht

📁 常用的DSP算法集锦
💻 MHT
字号:
From: <由 Microsoft Internet Explorer 5 保存>
Subject: 
Date: Wed, 27 Sep 2006 22:35:35 +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/TAPI2.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>/* tapi2.c - interpolated tap output of a delay line */

double tap2();

double tapi2(D, w, q, d)                  /* usage: sd =3D tapi2(D, w, =
q, d); */
double *w, d;                             /* \(d\) =3D desired =
non-integer delay */
int D, q;                                 /* \(q\) =3D circular offset =
index */
{
       int i, j;
       double si, sj;

       i =3D (int) d;                       /* interpolate between =
\(s\sb{i}\) and \(s\sb{j}\) */
       j =3D (i+1) % (D+1);                 /* if \(i=3DD\), then =
\(j=3D0\); otherwise, \(j=3Di+1\) */

       si =3D tap2(D, w, q, i);             /* note, \(s\sb{i}(n) =3D =
x(n-i)\) */
       sj =3D tap2(D, w, q, j);             /* note, \(s\sb{j}(n) =3D =
x(n-j)\) */

       return si + (d - i) * (sj - si);
}
</PRE></BODY></HTML>

⌨️ 快捷键说明

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