image thumbnail

Fast K-means clustering

by

 

31 Oct 2011 (Updated )

Fast mex K-means clustering algorithm with possibility of K-mean++ initialization.

spiral2d(N)
function Z = spiral2d(N)

%
% Z = spiral2d(N);
%

t          = rand(1 , N);
temp1      = 2 + 10*t;
temp2      = 7*pi*t;
Z          = [temp1.*sin(temp2) ; temp1.*cos(temp2)] + 0.5*randn(2 , N);

Contact us