Commit 66f5cabc by thomas.forbriger

### libs/libpsdxx [TASK]: specify computed values are one-sided PSD

parent 0c6e873b
 ... ... @@ -13,6 +13,12 @@ This library (libpsdxx) provides a C++ class to compute the cross power spectral density of two time series, the power spectral density of a single time series and the coherence of two time series. Power spectral density computed by this library is the so-called one-sided PSD. This is, if P(f) is the Fourier transform of the normalized auto-correlation function, the output of the program is 2P(f). The rms-amplitude in a frequency band (f2-f1) is A=sqrt(2*P(f)*(f2-f1)) if P(f) is constant in the interval (f1,f2). Documentation ============= doxygen source code documentation ... ...
 ... ... @@ -59,6 +59,12 @@ spectral density of two time series, the power spectral density of a single time series and the coherence of two time series. \date 01.01.2019 Power spectral density computed by this library is the so-called one-sided PSD. This is, if P(f) is the Fourier transform of the normalized auto-correlation function, the output of the program is 2P(f). The rms-amplitude in a frequency band (f2-f1) is A=sqrt(2*P(f)*(f2-f1)) if P(f) is constant in the interval (f1,f2). */ /* ----- END OF doxygen.txt ----- */
 ... ... @@ -379,6 +379,9 @@ namespace psd { // we have an energy spectrum so far // adjust scaling factor to obtain signal power // // This factor computes the one-sided PSD, i.e. twice the Fourier // transform of the normalized auto-correlation function. double scalingfactor=2.*tapscaling/Tw; if (this->Mnsegments>1) { scalingfactor /= this->Mnsegments; } ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!