Some doubt with the eigenvalues size of PCA

asked 2015-11-02 23:14:24 -0600

gds gravatar image

Assuming the mat is 246*3000,that is, I have 246 data and 3000 feature. Then I use the PCA as below and the result is 246. I think it should be 3000, what wrong with the code?

PCA pca(mat, Mat(), PCA::DATA_AS_ROW);
cout << pca.eigenvalues.rows << endl;
edit retag flag offensive close merge delete

Comments

why do you think it is wrong ?

berak gravatar imageberak ( 2015-11-03 04:18:19 -0600 )edit