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

📄 dir2.c

📁 DSP algorithm
💻 C
字号:
/* dir2.c - IIR filtering in direct form */double dot();void delay();double dir2(M, a, L, b, w, v, x)          /* usage: y = dir2(M, a, L, b, w, v, x); */double *a, *b, *w, *v, x;int M, L;{       v[0] = x;                                 /* current input sample */       w[0] = 0;                                 /* needed for dot(M,a,w) */       w[0] = dot(L, b, v) - dot(M, a, w);       /* current output */       delay(L, v);                              /* update input delay line */       delay(M, w);                              /* update output delay line */       return w[0];}

⌨️ 快捷键说明

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