using NeuroAnalyzer
= load("files/eeg.hdf"); eeg
[ Info: Loaded: EEG (24 × 308480 × 1; 1204.996 s)
Load data:
using NeuroAnalyzer
= load("files/eeg.hdf"); eeg
[ Info: Loaded: EEG (24 × 308480 × 1; 1204.996 s)
Create virtual channel:
= vch(eeg, f="mean(fp1 + fp2) / cz") vc
1×308480×1 Array{Float64, 3}:
[:, :, 1] =
2.01373 0.626121 0.217568 … 2.78514 2.07803 0.180071 2.68402
Any external formula/operation/function may be applied to EEG signal using apply()
function:
= apply(eeg, f="mean(obj, dims=1)", ch=["Fp1", "Fp2"]) ch_avg
2×1×1 Array{Float64, 3}:
[:, :, 1] =
0.08839714508574183
-0.04278170257057378
In the formula eeg
indicates EEG object. Function f
will be applied to all channels specified by ch
. OBJ signal is given using variable obj
here.