eeginterp | R Documentation |
Spherical spline interpolation of EEG data
eeginterp(
x,
sl = getLocationsfromLabels(colnames(x)),
bad,
method = "spherical"
)
x |
input time series, specified as a numeric matrix or vector. In case
of a vector it represents a single signal; in case of a matrix each column
is a signal. Alternatively, an object of class |
sl |
sensor locations of |
bad |
sensor locations of the bad sensors (those to interpolate), specified in one of the following forms:
|
method |
method used for interpolation, specified as a character string. Currently, only "spherical" is supported. |
The data at bad sensors is replaced by interpolated data from remaining sensors using spherical spline interpolation (Perrin et al., 1989).
interpolated bad sensors, returned as an object of the same class and dimensions as the input
Matlab code for EEGlab, Copyright (C) Arnaud Delorme, CERCO, 2006, arno@salk.edu. Ported to R and adapted by Geert van Boxtel, G.J.M.vanBoxtel@gmail.com
Perrin, F., Pernier, J., Bertrand, O., & Echallier, J. F. (1989). Spherical splines for scalp potential and current density mapping. Electroencephalography and clinical neurophysiology, 72(2), 184-187.
## Not run:
x <- EEGdata[, 1:28]
y <- eeginterp(x, bad = "T7, T8")
plot(ctd(x, fs = fs(EEGdata)))
plot(ctd(y, fs = fs(EEGdata)))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.