Performs low-pass anti-aliasing filtering and downsamples EEG data by a
specified factor. This is a wrapper for decimate
from the
signal
package. Note that this will also adjust the event table,
moving events to the nearest time remaining after downsampling
eeg_downsample(data, ...) # S3 method for eeg_data eeg_downsample(data, q, ...) # S3 method for eeg_epochs eeg_downsample(data, q, ...)
data | An |
---|---|
... | Parameters passed to functions |
q | Integer factor to downsample by |
eeg_data
: Downsample eeg_data objects
eeg_epochs
: Downsample eeg_epochs objects
Matt Craddock matt@mattcraddock.com
eeg_downsample(demo_epochs, 2)#>#> Epoched EEG data #> #> Number of channels : 11 #> Number of epochs : 80 #> Epoch limits : -0.197 - 0.443 seconds #> Electrode names : A5 A13 A21 A29 A31 B5 B6 B8 B16 B18 B26 #> Sampling rate : 64 Hz #> Reference : average