Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Power spectral density of a signal with gaps?

Does anyone know if it is possible to find a power spectral density of a signal with gaps in it. For example (in matlab syntax cause that is what I'm familiar with)

ta=1:1000; 
tb=1200:3000;

t=[ta tb];    % this is the timebase
signal=randn(size(t));  this is a signal

figure(101)

plot(t,signal,'.')

I'd like to be able to determine frequencies on a longer time base that just the individual sections of data. Obviously I could just take the PSD of individual sections but that will limit the lowest frequency. I could interpolate the data, but this would colour the PSD.

Any thoughts would be much appreciated.

like image 390
mor22 Avatar asked Dec 13 '25 22:12

mor22


1 Answers

The Lomb-Scargle periodogram algorithm is usually used to perform analysis on unevenly spaced data (sampled at arbitrary time points) or when a proportion of the data is missing.

Here's a couple of MATLAB implementations:

  • lombscargle.m (FEX)
  • Lomb (Lomb-Scargle) Periodogram (FEX)
  • lomb.m - ECG tools by Gari Clifford
like image 154
Amro Avatar answered Dec 16 '25 14:12

Amro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!