Registered Member
|
Hello,
I have a set of 2D points, let us say 10 2D points. Then I save this points in a matrix, like:
Then I followed the instructions from ggael. (viewtopic.php?f=9&t=110265#p260370)
I assumed that I get after the PCA a 2x2 matrix, but here I get then a 10x10 matrix. Unfortunately I didn´t find another tutorials/examples, where I get the 2 Eigenvectors for a 2D point scene. |
Moderator
|
Your data matrix is stored the other way round compared to the code you borrowed, so you have to adapt the code to your storage order (and use a Matrix2f for speed):
|
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar