简体   繁体   English

公式使用FFT幅度

[英]formula Amplitude using FFT

I want to ask about the formula of amplitude bellow. 我想问一下幅度波纹的公式。 I am using Fast Fourier Transform . 我正在使用快速傅里叶变换 So it returns real and complex numbers. 所以它返回真实和复杂的数字。 after that I must search amplitude for each frequency. 之后我必须搜索每个频率的幅度。

My formula is 我的公式是

amplitude = 10 * log (real*real + imagined*imagined)

I want to ask about this formula. 我想问一下这个公式。 What is it source? 它的来源是什么? I have been search, but I don't found any source. 我一直在搜索,但我找不到任何来源。 Can anybody tell me about that source? 任何人都可以告诉我这个消息来源吗?

This is a combination of two equations: 这是两个方程的组合:

1: Finding the magnitude of a complex number (the result of an FFT at a particular bin) - the equation for which is m = sqrt(r^2 + i ^2) 1:查找复数大小 (特定bin处的FFT结果) - m = sqrt(r^2 + i ^2)的等式

2: Calculating relative power in decibels from an amplitude value - the equation for which is p =10 * log10(A^2/Aref^2) == 20 log10(A/Aref) where Aref is a some reference value. 2:从幅度值计算以分贝单位的相对功率 - 其等式为p =10 * log10(A^2/Aref^2) == 20 log10(A/Aref)其中Aref是一些参考值。

By inserting m from equation 1 into a from equation 2 with ARef = 1 we get: 通过插入m从方程1变成a从方程2 ARef = 1 ,我们得到:

p = 10 log(r^2 + i ^ 2)

Note that this gives you a measure of relative signal power rather than amplitude. 请注意,这可以衡量相对信号功率而不是幅度。

The first part of the formula likely comes from the definition of Decibel, with the reference P0 set to 1, assuming with log you meant a logarithm with base 10. 公式的第一部分可能来自Decibel的定义 ,参考P0设置为1,假设用log表示对数为10的对数。

The second part, ie the P1=real^2 + imagined^2 in the link above, is the square of the modulus of the Fourier coefficient cn at the n- th frequency you are considering. 第二部分,即上面链接中的P1=real^2 + imagined^2 ,是您正在考虑的第n-个频率的傅里叶系数cn的模数的平方。

A Fourier coefficient is in general a complex number (See its definition in the case of a DFT here ), and P1 is by definition the square of its modulus. 傅立叶系数通常是复数(在此处参见DFT的定义),并且P1根据其定义为其模数的平方。 The FFT that you mention is just one way of calculating the DFT. 你提到的FFT只是计算DFT的一种方法。 In your case, likely the real and complex numbers you refer to are actually the real and imaginary parts of this coefficient cn . 在您的情况下,您所指的实数和复数实际上可能是该系数cn的实部和虚部。

  • sqrt(P1) is the modulus of the Fourier coefficient cn of the signal at the n- th frequency. sqrt(P1)是第n-个频率的信号的傅立叶系数 cn的模数。
  • sqrt(P1)/N , is the amplitude of the Fourier component of the signal at the n- th frequency (ie the amplitude of the harmonic component of the signal at that frequency), with N being the number of samples in your signal. sqrt(P1)/N是第n-个频率信号的傅里叶分量的幅度(即该频率信号的谐波分量的幅度), N是信号中的样本数。 To convince yourself you need to divide by N , see this equation. 要说服自己需要除以N ,请参阅此等式。 However, the division factor depends on the definition/convention of Fourier transform that you use, see the note just above here , and the discussion here . 然而,分割系数取决于定义/公约傅立叶变换使用,看到的只是上面的注意事项在这里 ,并讨论在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM