To properly run this function, please install ravetools
package.
generate_reference(subject, electrodes)
A reference instance returned by new_reference
with
signal type determined automatically.
subject ID or RAVESubject
instance
electrodes to calculate the common average; these electrodes must run through 'Wavelet' first
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.