Short Description. I am doing PCA on an image at a time, and for each eig operation I store the 1st eigenvector. After each is found, I then average the 1st of eigenvectors that I stored for each of the images. The eigenvectors have real and complex component.
Consistent Eig direction Trick Now, I know the sign of the eigenvector is usually immaterial (innumerable posts on this), however, I would like the signs to be consistent (because I am averaging the 1st eigenvector of each image.)
My problem is that I have real and complex valued eigenvalues so I can't use the following Trick I read here that in order to have consistent signs, I can simply sum the elements of each eigenvalue, and then ensure that this sum is positive. How does one do the same for complex data? And is there some other way?
Okay, What I am actually doing I'm putting this here so people can better see what I am doing in fuller detail:
Step 1. solve eigenvalue problem I am basically finding eigenvectors called $\alpha^{(1)}_k$ for each image $k$, (the ones I wanted to ensure uniform sign), then
Step 2. in order to find phi multiplying them by another complex vector, in order to find the principle component $\phi^{(1)}_k$ for each image $k$. Note that this is a complex vector for each $k$.
Step 3. Averaging over k the $\phi^{(1)}_k$ But using a symmetry property (that I wont say because its unnecessary detail) before averaging makes the complex part go way (so that the average $\langle \phi^{(1)}_k\rangle_k = \phi^{(1)}$ is strictly real).
However, before Step 3, where I ultimately get a real valued, averaged $Phi^{(1)}$, I have the complex $\alpha^{(1)}$, which is the result of taking eigenvalues, and thats the part I want to be uniform sign for each image. And because they are complex, I can't just use the sum-components-positive trick. Any ideas how I can ensure consistent sign for each image?