-
Notifications
You must be signed in to change notification settings - Fork 2
/
dbs_estm_sig.m
28 lines (26 loc) · 1.31 KB
/
dbs_estm_sig.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
function dbs = dbs_estm_sig(bdgr, bdgr_thre, wdgr, wdgr_thre)
% DBS_ESTM_SIG Estimation of the FWE-corrected significance of degree and cluster persistency of every node
% ================================================================================================================
% [ INPUTS ]
% bdgr, bdgr_thre, wdgr, wdgr_thr
% ----------------------------------------------------------------------------------------------------------------
% [ OUTPUTS ]
% dbs
% ----------------------------------------------------------------------------------------------------------------
% Last update: Aug 30, 2016.
%
% Copyright 2016. Kwangsun Yoo (K Yoo), PhD
% E-mail: rayksyoo@gmail.com / raybeam@kaist.ac.kr
% Laboratory for Cognitive Neuroscience and NeuroImaging (CNI)
% Department of Bio and Brain Engineering
% Korea Advanced Instititue of Science and Technology (KAIST)
% Daejeon, Republic of Korea
% ================================================================================================================
bdgr_sig = bdgr;
bdgr_sig (bdgr < bdgr_thre) = 0;
dbs.bd.clst(:,1) = find(bdgr_sig > 0);
dbs.bd.clst(:,2) = bdgr(bdgr_sig > 0);
wdgr_sig = wdgr;
wdgr_sig (wdgr <= wdgr_thre) = 0;
dbs.wd.clst(:,1) = find(wdgr_sig > 0);
dbs.wd.clst(:,2) = wdgr(wdgr_sig > 0);