NeuroAnalyzer tutorials: Edit: Virtual channels and applying formula
Initialize NeuroAnalyzer
using NeuroAnalyzer
eeg = load("files/eeg.hdf");Create virtual channel:
vc = vch(eeg,
f="mean(fp1 + fp2) / cz")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:
ch_avg = apply(eeg,
f="mean(obj, dims=1)",
ch=["Fp1", "Fp2"])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.