eelbrain.psd_welch
- eelbrain.psd_welch(ndvar, fmin=0, fmax=inf, n_fft=256, n_overlap=0, n_per_seg=None)[source]
Power spectral density with Welch’s method
- Parameters:
ndvar (NDVar) – Data with time dimension.
fmin (float) – Lower bound of the frequencies of interest.
fmax (float) – Upper bound of the frequencies of interest.
n_fft (int) – Length of the FFT in samples (default 256).
n_overlap (int) – Overlap between segments in samples (default 0).
n_per_seg (int) – Length of each Welch segment in samples. Smaller
n_per_segresult in smoother PSD estimates (defaultn_fft).
- Returns:
psd – Power spectral density, with a
frequencydimension.- Return type:
Notes
Uses
mne.time_frequency.psd_array_welch()implementation.