Fourier transform when the data is lacking datapoints

Click For Summary

Discussion Overview

The discussion revolves around the application of Fourier transforms in scenarios where data points are missing or unevenly spaced. Participants explore various methods and approaches to handle this issue, including discrete Fourier transforms, numerical integration, and periodogram analysis.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant inquires about the Fourier transform equation applicable when data is lacking, specifically referencing a sine wave.
  • Another participant suggests that the normal discrete Fourier transform may work well, providing the formula for it.
  • A participant references a paper that discusses a method for computing numerical integrals from data, which could be useful when data points are not equally spaced.
  • There is a suggestion to use curve fitting to fill in missing data points for high-resolution sine wave data, although this may not apply to more complex signals.
  • Another participant proposes periodogram analysis as a method to search for sinusoidal curves that fit the data, mentioning the Scargle Periodogram as a specific example.
  • Participants discuss the need for placeholder values in software like Matlab when using FFT, highlighting various methods for handling missing data points.
  • There is mention of the nonuniform discrete Fourier transform as a potential solution for more complex scenarios where simple curve fitting may not suffice.

Areas of Agreement / Disagreement

Participants express various approaches to the problem, with no consensus on a single method. Some agree on the utility of curve fitting and periodogram analysis, while others emphasize the limitations of these methods in more complex cases.

Contextual Notes

Participants note that the effectiveness of methods may depend on the nature of the data and the complexity of the underlying signal. There are unresolved considerations regarding the best approach for different types of missing data scenarios.

Who May Find This Useful

This discussion may be useful for individuals interested in signal processing, particularly those dealing with incomplete or unevenly sampled data in fields such as engineering and astrophysics.

arcTomato
Messages
104
Reaction score
27
Homework Statement
I would like to know the equation of Fourier transform when the data has lack.
Relevant Equations
Fourier transform
I would like to know the equation of Fourier transform when the data has lack. like this sine wave.
スクリーンショット 2020-01-25 10.54.12.png
 
Physics news on Phys.org
The answer to your question is pretty trivial, IMO. What do you think the answer is?
 
  • Like
Likes   Reactions: arcTomato
Hi @berkeman! Thank you.( you always help me)
I really don't know, but normal discrete Fourier transform works well?
\begin{eqnarray} a_j &=& \sum_{k}^{}x_k e^{ 2 \pi i j k/N} \end{eqnarray}
 
https://arxiv.org/pdf/1507.01832.pdf

The method described in the above paper will work because it computes an explicit numerical integral from the data rather than an FFT (fast Fourier transform). FFTs require a number of equally spaced data points. What you need is an integration method that works in the case where the available data is not equally spaced. Lots of explicit numerical integration methods will do that.
 
  • Like
Likes   Reactions: jim mcnamara and berkeman
Thank you! @Dr. Courtney !
Tha paper looks so useful for me. I will try it.
 
  • Like
Likes   Reactions: berkeman
Hi @berkeman !
If you don't mind, I would like to know the continuation of our talk.
 
arcTomato said:
Hi @berkeman !
If you don't mind, I would like to know the continuation of our talk.
Sure arcT. My point was that in this problem you clearly have high resolution sample data for a sine wave, and can fill in any missing datapoints with a simple curve fit. That will give you the continuous data that you need to do the straightforward FT on the data.

Now, if you had datapoints that did not so clearly indicate a simple waveform, then you would have a much more difficult problem...
 
  • Like
Likes   Reactions: arcTomato and scottdave
Another approach is to use periodogram analysis. It searches for sinusoidal curves that fit the data which may have missing points or uneven sampling times, so essentially a least-squares spectral analysis. See, for example the Scargle Periodogram. Look for that as a launch point to other periodogram methods.

Periodograms are often used in analyzing astrophysical data where the sampling is interfered with by day/night or viewing conditions (weather).
 
  • Informative
  • Like
Likes   Reactions: arcTomato and berkeman
  • #10
Hi guys @berkeman , @scottdave , @gneill
Your helps are so useful.
I will study about Periodograms and use Matlab.
Thank you!
 
  • Like
Likes   Reactions: berkeman
  • #12
Hi @scottdave .
I didn't know this.
Thank you!
 
  • Like
Likes   Reactions: scottdave
  • #13
arcTomato said:
Hi @scottdave .
I didn't know this.
Thank you!
How did it go? One thing about using the FFT in Matlab or Scilab (or Octave, another free alternative): you will need some sort of placeholder value where the missing data points are. If you just skip them, then everything will get "squished" in time domain. There are different methods for handling missing information. You could think of them as noise and so replace with a random number, or simply replace with the average of all points. There are other methods. Each has some pros and cons.
 
  • Like
Likes   Reactions: arcTomato
  • #14
berkeman said:
Sure arcT. My point was that in this problem you clearly have high resolution sample data for a sine wave, and can fill in any missing datapoints with a simple curve fit. That will give you the continuous data that you need to do the straightforward FT on the data.

Now, if you had datapoints that did not so clearly indicate a simple waveform, then you would have a much more difficult problem...

The problem is that this only works if you have a time series that so very clearly has a form that is amenable to filling in the blanks. You can look at this one and say "gee whiz, that looks like a sine wave and I can probably do a curve fit to determine the missing points." Now what happens if your signal is two superposed sine waves? Three? Forty? Five thousand?

If you want a more general procedure, you need to use an integral method instead of an FFT as @Dr. Courtney suggested or else look into the nonuniform discrete Fourier transform.
 
  • Like
  • Informative
Likes   Reactions: arcTomato, berkeman and scottdave
  • #15
Hi @scottdave ,@boneh3ad
I am trying to use Matlab now. (I have not used it ever)

so I understand that I should study about the nonuniform discrete Fourier transform( or integral method).
(My goal is making the program of those methods in C.)
Thanks a lot.
 
  • Like
Likes   Reactions: scottdave

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K