Skip to main content
. 2024 Nov 22;14(12):1166. doi: 10.3390/brainsci14121166
Algorithm 2: Calculation of a coupling matrix in the source space.
  • Input: EEG source signals S=[s1(t),s2(t),,sc(t)]n×c and measured fNIRS signals Y=[y1(t),y2(t),,yd(t)]n×d

Output: CS
1: for i=1,,c, do
2:       Calculate the time-frequency power spectrum Pi(t,f) for si(t) by Equation (8).
3:       Calculate the normalized time-varying power Pi(t) for si(t) by Equation (9).
4:       Calculate the predicted fNIRS signal y˜i(t) by Equation (10).
5: end for
6: Create matrix Y˜ by utilizing all y˜i(t).
7: Segment Y˜ and Y into l samples; each sample contains Y˜ and Y.
8: for i=1,,l, do
9:          Fit Y within general linear model by Equation (13).
10:       Calculate the coupling matrix in the source space CS by Equation (14).
11: end for