-
Notifications
You must be signed in to change notification settings - Fork 2
/
tg_s00_Prelude___02_SNR_Adjustments.m
28 lines (26 loc) · 2.47 KB
/
tg_s00_Prelude___02_SNR_Adjustments.m
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
SETUP.CUBE = 20; % perturbation of the leadfields based on the shift of source position within a cube of given edge length (centered at the original leadfields positions), in [mm]
SETUP.CONE = pi/32; % perturbation of the leadfields based on the rotation of source orientation (azimuth TH, elevation PHI), in [rad]
SETUP.H_Src_pert = 0; % use original (0) or perturbed (1) leadfield for signal reconstruction
SETUP.H_Int_pert = 0; % use original (0) or perturbed (1) leadfield for nulling constrains
SETUP.SINR = 5; % signal to interference noise power ratio expressed in dB (both measured on electrode level)
SETUP.SBNR = 10; % signal to biological noise power ratio expressed in dB (both measured on electrode level)
SETUP.SMNR = 15; % signal to measurment noise power ratio expressed in dB (both measured on electrode level)
SETUP.WhtNoiseAddFlg = 1; % white noise admixture in biological noise interference noise (FLAG)
SETUP.WhtNoiseAddSNR = 3; % SNR of BcgNoise and WhiNo (dB)
SETUP.SigPre = 0; SETUP.IntPre = 0; SETUP.BcgPre = 1; SETUP.MesPre = 1; % final signal components for pre-interval (use zero or one for signal, interference noise, biological noise, measurement noise)
SETUP.SigPst = 1; SETUP.IntPst = 1; SETUP.BcgPst = 1; SETUP.MesPst = 1; % final signal components for post-interval (as above)
% For localization, the default is to consider random locations of ROI with some fixed candidate points such that
% SETUP.SRCS(1,1) of them are in close locations; additionally, no interfering sources are considered
% in the localization model. You may comment out the 'if' section below to experiment with other settings.
if(SETUP.supSwitch == 'loc')
SETUP.rROI = logical(1); % random (1) or predefined (0) ROIs
SETUP.rPNT = logical(0); % random (1) or predefined (0) candidate points for source locations: if 0,
% number of sources as in SETUP.SRCS(1,1) will be fixed and in close locations
SETUP.SigPre = 0; SETUP.IntPre = 0; SETUP.BcgPre = 1; SETUP.MesPre = 1; % final signal components for pre-interval (use zero or one for signal, interference noise, biological noise, measurement noise)
SETUP.SigPst = 1; SETUP.IntPst = 0; SETUP.BcgPst = 1; SETUP.MesPst = 1; % final signal components for post-interval (as above)
end
if SETUP.rPNT
disp('CC: using random source locations')
else
disp('CC: using predefined source locations')
end