stompy.nanpsd — A nan-aware power spectral density method¶
Uses the correlogram to avoid the widespread nan-contamination of an FFT.
-
stompy.nanpsd.
autocovariance
(x, maxlags=None, normalize=None)[source]¶ Correlation function - similar to xcorr. Copied from spectrum.correlation.CORRELATION, and simplified for the present application. assumes autocorrelation, not cross-correlation. norm is unbiased,x is real.
By default this is autocovariance. normalize: ‘corr’ - divide by var(x).
‘corrcoef’ - calculate a correlation coefficient for each lag