Input: Multichannel EEG data Xk (k = 1, 2) that are recorded from two experimental conditions |
Output: The variational distributions q*(Zk), q*(A), q*(α),
|
Initialization: Use the settings in (14), and set iter = 0, ℒ(0) = −inf, (c = 1, …, C; k = 1, 2; m = 1, …, M) |
Method: |
repeat |
iter = iter + 1 |
Update the parameters in the variational distributions using (7) – (12) |
if (iter mod 100) = 0 then
|
Compute by solving (13) |
end if
|
Compute the variational lower bound ℒ(iter) using (19) |
until ℒ(iter) − ℒ (iter − 1) ≤ a pre-defined threshold (e.g., 10−8) |