Skip to main content
. 2024 Sep 28;14(10):985. doi: 10.3390/brainsci14100985
Algorithm 1 Microstate Network Model
Step 1: According to the microstate template, the microstates A, B, C, and D time series are extracted for each participant.
Step 2: The x and y channels’ signals are transformed by the Hilbert transformation:
x~t=1πtxt=1π+x(τ)tτdτ
y~t=1πtyt=1π+y(τ)tτdτ
Step 3: The phase of the x and y channels’ signals are calculated from the original signals (xτ,y(τ)) and transformed into conjugate signals (x~t,y~t):
φxt=arctanx~txt
φyt=arctany~tyt
Step 4: According to the phases of the two signals, the average phase difference between the x and y signals is
PLVxy=1Lenn=1Nexp(j(φn(t)))
where φn=φx(t)φy(t) is the phase difference between x and y channels at time t, and Len represents the length of the time series, PLV[0,1].