From: maziyar <ma...@ua...> - 2005-05-10 15:25:35
|
I have tried using: vnl_symmetric_eigensystem<double> eig(cov(data.transpose())); vcl_cerr << eig.V << vcl_endl; vcl_cerr << eig.D << vcl_endl; to find the eigenvalues and the eigenvectors for a covariance matrix. When comparing my results to those of Matlab, I am producing similiar eigenvalues, however, my eigenvectors are not the same. Is this an expected result due to the different algorithms used by the two systems, or should they yield the same result. In matlab, i am simply using: [v,d] = eig(cov(data.')). Thanks, Maz Khorasani |