-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathloadData_simulation.m
More file actions
39 lines (33 loc) · 1.54 KB
/
loadData_simulation.m
File metadata and controls
39 lines (33 loc) · 1.54 KB
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
%% HFO detection
% This function prepares data file from simulation.
% (1) load dataset with basic pre-processing
% (2) setup electrode file (containing channel information)
%
% Note that the dataset contains raw spike epochs simulated from realistic
% clinical dataset. The attached simulation data consists of epoched spikes
% with additive HFOs and artifacts, embeded in white or realistic EEG background
% noise of SNR at 5~20dB. The noise data is modeled from white Gaussian
% process and real clinical recordings using autoregressive model.
% The electrode file contains the digitizer of the surface channels, which
% defines the sequence, the name, and the 3D location in the scalp, which
% will be used for visualization purposes.
%
%--------------------------------------------------------------------
% Zhengxiang Cai
% 2020.08.21
% Document and commit for repository.
% data file with simulated HFOs and artifacts under various noise levels
%%% white Gaussian noise
% load(fullfile(defaultBaseDataPath,'raw','Pt_simulation_10dB_white.mat'));
%%% realistic background noise
load(fullfile(defaultBaseDataPath,'raw','Pt_simulation_10dB_real.mat'));
sigRaw = sigEpochSpike_cat;
% setup channel file
copyfile(fullfile(defaultBaseDataPath,'raw','electrodes.xyz'),...
pathOutput);
pathChannel = fullfile(pathOutput,'electrodes.xyz');
% save and display dataset information
cd(pathOutput);
save(fullfile(pathOutput,'1_HFOBasic'));
fprintf('Dataset imported.\n');
fprintf('Total %d epochs counted.\n',length(sigEpochInfo));