eeg_psd | R Documentation |
Compute the power spectral density (PSD) based on an eeg_lst
object. For now it only uses Welch's method, so essentially it is a wrapper of the gsignal::pwelch function.
eeg_psd(
.data,
.method = "welch",
.config = list(window = function(x) 2^ceiling(log2(sqrt(NROW(x)))), overlap = 0.5, nfft
= NULL, detrend = c("long-mean", "short-mean", "long-linear", "short-linear",
"none"), range = "half")
)
.data |
A |
.method |
"welch" for Welch's method. |
.config |
See gsignal::pwelch. |
A psd_lst
object
Other frequency-based functions:
eeg_power_band()
psd_faces <- eeg_psd(data_faces_ERPs)
psd_faces %>%
eeg_select(F3) %>%
plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.