vDSP:FFT功能是否包括窗口化? [英] vDSP: Do the FFT functions include windowing?

查看:136
本文介绍了vDSP:FFT功能是否包括窗口化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用vDSP实现算法.

1)进行FFT 2)取绝对值平方的对数(可以用查找表完成) 3)进行另一次FFT 4)取绝对值

我不确定在运行FFT之前是否应该通过窗口函数将输入的数据扔出去.

vDSP_fft_zrip(setupReal, &A, stride, log2n, direction);

那是我的FFT函数

我是否需要先通过vDSP_hamm_window(...)抛出数据?

解决方案

iOS Accelerate库函数vDSP_fft_zrip()不包括应用窗口函数(除非由于有限长度参数而导致隐含的矩形窗口计数).

因此,您需要首先应用所选的窗口函数(有许多不同的窗口函数).

I am working on implementing an algorithm using vDSP.

1) take FFT 2) take log of square of absolute value (can be done with lookup table) 3) take another FFT 4) take absolute value

I'm not sure if it is up to me to throw the incoming data through a windowing function before I run the FFT on it.

vDSP_fft_zrip(setupReal, &A, stride, log2n, direction);

that is my FFT function

Do I need to throw the data through vDSP_hamm_window(...) first?

解决方案

The iOS Accelerate library function vDSP_fft_zrip() does not include applying a window function (unless you count the implied rectangular window due to the finite length parameter).

So you need to apply your chosen window function (there are many different ones) first.

这篇关于vDSP:FFT功能是否包括窗口化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆