Skip to main content
. 2023 Jun 29;23(13):6038. doi: 10.3390/s23136038
Algorithm 1: The calculation algorithm of KPLS [19]
Step 1 Set i=1, Y1=Y, K¯1=K¯
Step 2 Select the first column of Yi as ui.
Step 3 ti=K¯iui
Step 4 ti=titi
Step 5 ci=YiTti, ui=Yiti
Step 6 ui=uiui
Step 7 Repeat step 3 to step 6 until ti converges.
Step 8 K¯i+1=INtitiTK¯iINtitiT; Yi+1=INtitiTYi
Step 9 Get parameters T=T,ti, U=U,ui
Step 10 Set i=i+1 and repeat step 2 to step 9 until i>r