TS++ library: time series library
|
|
privatevirtual |
PSD scaling factor
Tapering stationary noise with a Hanning taper reduces total signal energy an thus the signal power obtained through an FFT. In his tutorial Agnew recommends to scale each sample of the series by , where is the k-th sample of the taper and
is a measure for the loss in total signal power due to application of the taper. This applies only for staionary noise.
From Walter's Matlab scripts I took:
If data is the time series vector and y is the Hanning taper of appropriate length, Walter calculates
and
where ndata is the length of data and y.
For a Hanning taper:
Thus
From Gradshteyn and Ryzhik (eq. 1.321 3) I find
Within the sum the contribution of both cos-terms will vanish, since both are averaged over one and two periods, respectively. Thus
Since foutra is not scaling the taper but scaling the power spectrum, we have to apply the factor 8/3 to the result of power spectrum calculation.
This factor 8/3=2.66667 was tested against the value for , when explicitely derived from a Hanning taper time series by the above formula.
13/9/2007, thof
Implements ts::tapers::Taper.