function [wL, wS] = calPCA(data)
    cov_matrix = cov(data);
    [V, D] = eig(cov_matrix);
    wL = V(:, 2);
    wS = V(:, 1);
    
    