Input: The sample set ; The dimension of the low-dimensional subspace is denoted as . Output: The projection matrix W. 1: Centering all samples: . 2: Calculate the covariance matrix . 3: Perform eigenvalue decomposition on the covariance matrix . 4: Take the eigenvectors corresponding to the largest eigenvalues . |