We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40ccd6a commit 5d2d8b7Copy full SHA for 5d2d8b7
functions/I2MC/kmeans2.m
@@ -85,7 +85,7 @@
85
moved = nidx ~= previdx;
86
if any(moved)
87
% Resolve ties in favor of not moving
88
- moved(D(moved,1)==D(moved,2)) = false;
+ moved(moved & D(:,1)==D(:,2)) = false;
89
end
90
if ~any(moved)
91
break;
0 commit comments