MCPcopy Index your code
hub / github.com/mne-tools/mne-python / transform

Method transform

mne/decoding/transformer.py:477–502  ·  view source on GitHub ↗

Compute power spectral density (PSD) using a multi-taper method. Parameters ---------- epochs_data : array, shape (n_epochs, n_channels, n_times) The data. Returns ------- psd : array, shape (n_signals, n_freqs) or (n_freqs,)

(self, epochs_data)

Source from the content-addressed store, hash-verified

475 return self
476
477 def transform(self, epochs_data):
478 """Compute power spectral density (PSD) using a multi-taper method.
479
480 Parameters
481 ----------
482 epochs_data : array, shape (n_epochs, n_channels, n_times)
483 The data.
484
485 Returns
486 -------
487 psd : array, shape (n_signals, n_freqs) or (n_freqs,)
488 The computed PSD.
489 """
490 epochs_data = self._check_data(epochs_data)
491 psd, _ = psd_array_multitaper(
492 epochs_data,
493 sfreq=self.sfreq,
494 fmin=self.fmin,
495 fmax=self.fmax,
496 bandwidth=self.bandwidth,
497 adaptive=self.adaptive,
498 low_bias=self.low_bias,
499 normalization=self.normalization,
500 n_jobs=self.n_jobs,
501 )
502 return psd
503
504
505@fill_doc

Callers 1

test_psdestimatorFunction · 0.95

Calls 2

psd_array_multitaperFunction · 0.85
_check_dataMethod · 0.45

Tested by 1

test_psdestimatorFunction · 0.76