Generate common average reference signal for 'RAVE' subjects
Source:R/workflow-generate_reference.R
generate_reference.RdTo properly run this function, please install ravetools
package.
Arguments
- subject
subject ID or
RAVESubjectinstance- electrodes
electrodes to calculate the common average; these electrodes must run through 'Wavelet' first
Value
A reference instance returned by new_reference with
signal type determined automatically.
Details
The goal of generating common average signals is to capture the common movement from all the channels and remove them out from electrode signals.
The common average signals will be stored at subject reference
directories. Two exact same copies will be stored: one in 'HDF5'
format such that the data can be read universally by other programming
languages; one in filearray format that can be
read in R with super fast speed.