Skip to content
Snippets Groups Projects
Commit 1ffad6ac authored by ac's avatar ac
Browse files

no stupid eigenvector

parent 4ffb484e
Branches master
No related tags found
No related merge requests found
......@@ -62,8 +62,12 @@ end
L=D^(-.5)*A*D^(-.5);
L=Cluster.Regularize(L); % remove the miniscule asymmetry from L
[X,D] = eigs(L,k);
% controversy! eigs returns the stupid eigenvector (eigenvalue = 1), nearly
% same value at all points. This vector not helpful for our embedding, we
% use the remaining largest magnitude k eigenvectors instead
% [X,D] = eigs(L,k);
[X,D] = eig(L);
X = X(:,1:k);
if 1 == k
Y = X ./ max(X);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment