mne.time_frequency.compute_raw_psd(raw, tmin=0.0, tmax=None, picks=None, fmin=0, fmax=inf, n_fft=2048, n_overlap=0, proj=False, n_jobs=1, verbose=None)

Compute power spectral density with average periodograms.


raw : instance of Raw

The raw data.

tmin : float

Minimum time instant to consider (in seconds).

tmax : float | None

Maximum time instant to consider (in seconds). None will use the end of the file.

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

n_fft : int

The length of the tapers ie. the windows. The smaller it is the smoother are the PSDs.

n_overlap : int

The number of points of overlap between blocks. The default value is 0 (no overlap).

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).


psd : array of float

The PSD for all channels

freqs: array of float :

The frequencies