pwelch#
Estimate the power spectral density of a signal using Welch’s method [1]
-
template<typename xType, typename wType>
__MATX_INLINE__ auto matx::pwelch(const xType &x, const wType &w, index_t nperseg, index_t noverlap, index_t nfft)# Operator to estimate the power spectral density of signal using Welch’s method.
- Template Parameters:
xType – Input time domain data type
wType – Input window type
- Parameters:
x – Input time domain tensor
w – Input window operator
nperseg – Length of each segment
noverlap – Number of points to overlap between segments. Defaults to 0
nfft – Length of FFT used per segment. nfft >= nperseg. Defaults to nfft = nperseg
- Returns:
Operator with power spectral density of x
-
template<typename xType>
__MATX_INLINE__ auto matx::pwelch(const xType &x, index_t nperseg, index_t noverlap, index_t nfft)#
Examples#
auto Pxx = make_tensor<float>({nfft});
auto w = ones<float>({nperseg});
(Pxx = pwelch(x, w, nperseg, noverlap, nfft)).run(exec);