滑动平均滤波

上传人:飞*** 文档编号:43563680 上传时间:2018-06-06 格式:DOC 页数:13 大小:894KB
返回 下载 相关 举报
滑动平均滤波_第1页
第1页 / 共13页
滑动平均滤波_第2页
第2页 / 共13页
滑动平均滤波_第3页
第3页 / 共13页
滑动平均滤波_第4页
第4页 / 共13页
滑动平均滤波_第5页
第5页 / 共13页
点击查看更多>>
资源描述

《滑动平均滤波》由会员分享,可在线阅读,更多相关《滑动平均滤波(13页珍藏版)》请在金锄头文库上搜索。

1、FIR 滤波器(滑动平均滤波,sinc 窗函数滤波,最优滤波,匹配滤波,维纳滤波、相关滤 波) 第 15,16,17 章的内容,讲了 FIR 中的滑动平均滤波、sinc 窗函数滤波和自 定义滤波。 -滑动平均(moving average)滤波器滑动平均滤波器常用于时域滤波,尽管它很简单,但是对于抑制随机噪声并保 留陡峭边沿来说是最优的。 In spite of its simplicity, the moving average filter is optimal for a common task: reducing random noise while retaining a sharp

2、 step response. This makes it the premier filter for time domain encoded signals. 可以看出滑动平均滤波的冲击响应就是一个矩形脉冲,通过将输入信号和矩形 脉冲进行卷积实现滤波,注意这里是卷积,不要和后面的递归混淆。滑动平均滤波器的频响:时域效果好,频域效果就差,所以如果用来分频的话,则不用滑动平均滤波器, 滑动平均滤波器主要用于抑制噪声对信号的干扰。为了使时域和频域的效果有个折中,这里对最原始的滑动平均滤波器做下改变, 如下图所示,其中 1 pass 就是最原始的滑动平均滤波器。下面讲了为什么滑动平均滤波实现起来很

3、快的原因:可以看到虽然滑动平均滤波属于 FIR,并且通过卷积来运算,但是如果进行递 归运算会加快速度,不过需要注意的是这和后面将的 IIR 的递归是两个方面的 意思。-sinc 窗函数滤波(windowed-sinc filter,书中翻译叫什么?)与前面的滑动平均滤波不同(主要用于时域),sinc 窗函数是用于滤除频率的 (主要用于频域),就像前面所说,sinc 窗函数虽然在频域用于良好的性能, 但是在时域方面性能就差了,表现为 ripple(波纹,书中翻译叫什么?)和 overshoot(书中翻译叫什么?)。而且 sinc 窗函数滤波不能像滑动平均滤波那 样通过递归来计算卷积,这就增加了它

4、的运算量。sinc 窗函数滤波的冲击响应:它是从负无穷到正无穷的,使用时需要对它进行移位和截断处理,如下图所示:截断时用的 hamming 窗和 blackman 窗-自定义滤波(custom filter)-最优滤波白噪声叠加在信号,如何分离出信号的方式并不明显,那么怎么分才是最优的 呢?这并没有一个标准。这里讨论了三种滤波器,分别是滑动平均滤波、匹配滤波和维纳滤波。 滑动平均滤波前面讲过。 匹配滤波是指相关运算,通过对已知信号翻转并卷积,会在某一点求得最大。 维纳滤波频域上每个点的增益都根据信噪比来获得:三种滤波器输出波形为:需注意的是,匹配滤波和维纳滤波都需要卷积来实现。- 最后在重申下

5、 FIR 的概念:WhyWhy isis thethe impulseimpulse responseresponse “finite“?“finite“?In the common case, the impulse response is finite because there is no feedback in the FIR. A lack of feedback guarantees that the impulse response will be finite. Therefore, the term “finite impulse response“ is nearly sy

6、nonymous with “no feedback“.However, if feedback is employed yet the impulse response is finite, the filter still is a FIR. An example is the moving average filter, in which the Nth prior sample is subtracted (fed back) each time a new sample comes in. This filter has a finite impulse response even

7、though it uses feedback: after N samples of an impulse, the output will always be zero.WhatWhat areare thethe advantagesadvantages ofof FIRFIR FiltersFilters (compared(compared toto IIRIIR filters)?filters)?Compared to IIR filters, FIR filters offer the following advantages:They can easily be design

8、ed to be “linear phase“ (and usually are). Put simply, linear-phase filters delay the input signal but dont distort its phase. They are simple to implement. On most DSP microprocessors, the FIR calculation can be done by looping a single instruction. They are suited to multi-rate applications. By mu

9、lti-rate, we mean either “decimation“ (reducing the sampling rate), “interpolation“ (increasing the sampling rate), or both. Whether decimating or interpolating, the use of FIR filters allows some of the calculations to be omitted, thus providing an important computational efficiency. In contrast, i

10、f IIR filters are used, each output must be individually calculated, even if it that output will discarded (so the feedback will be incorporated into the filter). They have desireable numeric properties. In practice, all DSP filters must be implemented using finite-precision arithmetic, that is, a l

11、imited number of bits. The use of finite-precision arithmetic in IIR filters can cause significant problems due to the use of feedback, but FIR filters without feedback can usually be implemented using fewer bits, and the designer has fewer practical problems to solve related to non-ideal arithmetic

12、. They can be implemented using fractional arithmetic. Unlike IIR filters, it is always possible to implement a FIR filter using coefficients with magnitude of less than 1.0. (The overall gain of the FIR filter can be adjusted at its output, if desired.) This is an important consideration when using

13、 fixed-point DSPs, because it makes the implementation much simpler. WhatWhat areare thethe disadvantagesdisadvantages ofof FIRFIR FiltersFilters (compared(compared toto IIRIIR filters)?filters)?Compared to IIR filters, FIR filters sometimes have the disadvantage that they require more memory and/or

14、 calculation to achieve a given filter response characteristic. Also, certain responses are not practical to implement with FIR filters.WhatWhat isis thethe associationassociation betweenbetween FIRFIR filtersfilters andand “linear-phase“?“linear-phase“?Most FIRs are linear-phase filters; when a lin

15、ear-phase filter is desired, a FIR is usually used.WhatWhat isis a a linearlinear phasephase filter?filter?“Linear Phase“ refers to the condition where the phase response of the filter is a linear (straight-line) function of frequency (excluding phase wraps at +/- 180 degrees). This results in the delay through the filter being the same at all frequencies. Therefore, the filter does not cause “phase distortion“ or “delay distortion“. The lack of phase/delay distortion can

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号