How the heck are you supposed to use FFT?

  • Thread starter Thread starter Focus
  • Start date Start date
  • Tags Tags
    Fft
AI Thread Summary
The discussion focuses on using the Fast Fourier Transform (FFT) to compute the distribution function from its characteristic function. The FFT requires a discrete vector of values, not a single value, making it essential to sample the function appropriately. To evaluate the inverse Fourier transform (IFT) using FFT, the function must be bandlimited, meaning it should be zero beyond a certain cutoff time. Sampling should be done uniformly over the relevant interval, adhering to the Nyquist sampling theorem. If the function is not bandlimited, aliasing may occur, leading to inaccuracies in the results.
Focus
Messages
285
Reaction score
3
Hey,

This may seem very stupid but how the heck are you supposed to use FFT? The FFT transformations take a vector as in input but I want to use it to work out FT of a perticular value. I have the charecteristic function of a distribution and wish to numericaly work out values for the distribution function. Hope this makes sense.

Thanks in advance
 
Mathematics news on Phys.org


The FT gives the complex spectrum of the input signal, the FFT gives the discrete complex spectrum of an input sequence or vector. In other words, it decomposes the input into frequency components. I don't follow how you intend to apply this to distributions.
 


The Fourier transform itself is a transform of a function not a number. The FFT (Fast Fourier Transform) thinks of the function as being given by a discrete "vector" of values at different points. I have no idea what you could mean by taking the FFT of a single value.
 


Sorry maybe I was not so clear on this. I have a function
\psi(\lambda)=\int_{-\infty}^{\infty}e^{i \lambda t}f(t) dt

I was wondering if you could tell me how I could use the FFT (i.e. what values I should sample) to obtain f(\alpha) for some \alpha I choose?

Thanks
 


EDIT: I couldn't get equations in this post to render properly, please see the next.
 
Last edited:


So you know \psi(\lambda) and want to find f(\alpha), which is given by the continuous inverse FT or IFT
f(\alpha)=\int_{-\infty}^{\infty}e^{-i \lambda \alpha}\psi(\lambda) d\lambda

You want to know how to evaluate this using the FFT, right? This is a classic problem in digital signal processing, and the approach depends on the nature of f and psi.

A) f(t) is "bandlimited", that is, it is zero for t > t_c where t_c is a "cutoff time." (Because you are doing an IFT, the usual conventions of sampling a time function to find frequency are swapped here--you are sampling a spectrum to find a time function). An example is f(t)=gaussian, which is effectively zero after 5 standard deviations in time. This is the cutoff time t_c. Psi is also limited in frequency, after, say 5\sigma. So you sample psi uniformly over the interval
|\lambda| \leq 5\sigma, at a rate \Delta\lambda that satisfies the sampling theorem

\Delta\lambda \geq \frac{2}{t_c}.

Use a number of points N that is a power of 2 if you want to use an FFT, otherwise compute with the DFT, and take the value closest to \alpha.

B) If you are not bandlimited, you will alias and your results will suffer in accuracy. We won't discuss this unless it's necessary.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top