Applied Math#

mean_center(A)

Mean center the matrix A by subtracting its mean.

get_rotation_matrix(A, B)

Returns optimal rotation matrix to align 2D coordinates A to B.

pca(A[, method])

Principal component analysis of matrix A.

Implementation Details#

_pca_eig(A)

Principal component analysis of matrix A by eigen decomposition.

_pca_svd(A)

Principal component analysis of matrix A by singular value decomposition.