Input: The sample set D = { x 1 , x 2 , , x m } ;

The dimension of the low-dimensional subspace is denoted as d .

Output: The projection matrix W.

1: Centering all samples: x i x i 1 m i = 1 m x i .

2: Calculate the covariance matrix X X T .

3: Perform eigenvalue decomposition on the covariance matrix X X T .

4: Take the eigenvectors corresponding to the d largest eigenvalues W = w 1 , w 2 , , w d .