Skip to main content
. 2017 Aug 11;17(8):1860. doi: 10.3390/s17081860
Algorithm 1. Pseudo Code for Iterative Matrix Decomposition.
Inputs: MEG sensors space matrix XN×M
Process:
 1. For i = 1,…,R
  Randomly initialize t
  t1, t^=2t
  While t^t>eps
   t^=t
   p=XTt
   p1
   t=Xp
   t1
  End
  Extract the score and loading vector t, p
  Deflate X matrix: X=XtpT
 End
 2. T=[t1,t2,...,tR],P=[p1,p2,...,pR]
 3. Reconstruct the sensors matrix X^=TPT
Outputs: Score matrix T, loading matrix P, and reconstruction matrix X^.