Skip to main content
. 2019 Jun 27;19(13):2848. doi: 10.3390/s19132848
Algorithm 1 Incremental PCA with mean update
  • 1:

    Compute the mean vectors I¯B=1mi=n+1n+mIi, and I¯C=nn+mI¯A+mn+mI¯B.

  • 2:

    Form the matrix B^=(In+1IB)...(In+mIB)nmn+m(IBIA).

  • 3:

    Compute B˜=orth(B^UUTB^) and R=fΣUTB^0B˜(B^UUTB^).

  • 4:

    Compute the SVD of R: R=U˜Σ˜V˜T.

  • 5:

    Finally, U=[UB˜]U˜ and Σ=Σ˜.

  • 6:

    Repeat for each new block of frames. Now with A=U.