Description Super classes Public fields Examples
Definition for electrodes that collects 'LFP' signals
Definition for electrodes that collects 'LFP' signals
ravebase::RAVEAbstarctElectrode
-> ravebase::Continuous_Electrode
-> LFP_electrode
type
type of signals collected by the electrode
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | ## Not run:
# Download demo subject DemoSubject ~700MB data
# Electrode 14
e <- LFP_electrode$new(subject = 'demo/DemoSubject',
number = 14, is_reference = FALSE)
# Reference "ref_13-16,24"
ref <- LFP_electrode$new(subject = 'demo/DemoSubject',
number = "ref_13-16,24", is_reference = TRUE)
# ------ Reference ------
# By default there is no reference
e$reference_name # "noref
# set reference
e$set_reference(reference = ref)
e$reference_name # "ref_13-16,24"
# Set epoch
e$set_epoch(epoch = 'auditory_onset')
# Now epoch power
power <- e$epoch_power(before_onset = 1, after_onset = 2)
# Trial x Frequency x Time x Electrodes
power
# Subset power
subset(power, Time ~ Time < 0, Electrode ~ Electrode == 14)
# clear memory in RAM and cache on hard disk
e$clear_cache()
e$clear_memory()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.