mne.time_frequency.compute_epochs_psd(epochs, picks=None, fmin=0, fmax=inf, tmin=None, tmax=None, n_fft=256, n_overlap=0, proj=False, n_jobs=1, verbose=None)

Compute power spectral density with average periodograms.


epochs : instance of Epochs

The epochs.

picks : array-like of int | None

The selection of channels to include in the computation. If None, take all channels.

fmin : float

Min frequency of interest

fmax : float

Max frequency of interest

tmin : float | None

Min time of interest

tmax : float | None

Max time of interest

n_fft : int

The length of the tapers ie. the windows. The smaller it is the smoother are the PSDs. The default value is 256. If n_fft > len(epochs.times), it will be adjusted down to len(epochs.times).

n_overlap : int

The number of points of overlap between blocks. Will be adjusted to be <= n_fft.

proj : bool

Apply SSP projection vectors.

n_jobs : int

Number of CPUs to use in the computation.

verbose : bool, str, int, or None

If not None, override default verbose level (see mne.verbose).


psds : ndarray (n_epochs, n_channels, n_freqs)

The power spectral densities.

freqs : ndarray (n_freqs)

The frequencies.