LTPDA Toolbox | contents | ![]() ![]() |
Univariate power spectral density is performed by the Welch's averaged, modified periodogram method.
ltpda_pwelch estimates the power spectral density of time-series
signals, included in the input AOs. Data are windowed prior to the estimation of the spectrum, by multiplying
it with a spectral window object, and can be detrended by polinomial of time in order to reduce the impact
of the border discontinuities. The window length is adjustable to shorter lenghts to reduce the spectral
density uncertainties, and the percentage of subsequent window overlap can be adjusted as well. The detrending is
performed on the individual windows. The user can choose the quantity being given in output among
ASD (amplitude spectral density), PSD (power spectral density), AS (amplitude spectrum), and PS (power spectrum).
Syntaxis
b = ltpda_pwelch(a1,a2,a3,...,pl)
a1, a2, a3, ... are AO(s) containing the input time series to be evaluated. b includes the output object(s). The parameter list pl includes the following parameters:
If the user doesn't specify the value of a given parameter, the default value is used.
Examples
1. Evaluation of the PSD of a time-series represented by a low frequency sinewave signal, superimposed to white noise. Comparison of the effect of windowing on the estimate of the white noise level and on resolving the signal.
x1 = ao(plist('waveform','sine wave','f',0.1,'A',1,'nsecs',1000,'fs',10)); x2 = ao(plist('waveform','noise','type','normal','nsecs',1000,'fs',10)); x = x1 + x2; y_lf = ltpda_pwelch(x); y_hf = ltpda_pwelch(x,plist('nfft',1000)); iplot(y_lf, y_hf)
2. Evaluation of the PSD of a time-series represented by a low frequency sinewave signal, superimposed to white noise and to a low frequency linear drift. Comparison of the effect of different windows and of detrending.
x1 = ao(plist('waveform','sine wave','f',0.1,'A',1,'nsecs',1000,'fs',10)); x2 = ao(plist('waveform','noise','type','normal','nsecs',1000,'fs',10)); x3 = ao(plist('tsfcn', 't.^2 + t','nsecs',1000,'fs',10)); x = x1 + x2 + x3; y_1 = ltpda_pwelch(x,plist('scale','ASD','order',1)); y_2 = ltpda_pwelch(x,plist('scale','ASD','order',2)); y_3 = ltpda_pwelch(x,plist('scale','ASD','order',2, 'win', specwin(plist('name', 'BH92')))); iplot(y_1, y_2, y_3);
![]() |
Spectral Estimation | Cross-spectral density estimates | ![]() |
©LTP Team