/usr/share/octave/site/m/vlfeat/toolbox/demo/vl_demo_kmeans_2d.m is in octave-vlfeat 0.9.17+dfsg0-6+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | N = 10000 ;
dimension = 2 ;
data = rand(dimension,N) ;
numClusters = 20 ;
cc=hsv(numClusters);
[centers, assignments] = vl_kmeans(data, numClusters);
figure
hold on
for i=1:numClusters
plot(data(1,assignments == i),data(2,assignments == i),'.','color',cc(i,:));
end
plot(centers(1,:),centers(2,:),'k.','MarkerSize',20)
axis off
vl_demo_print('kmeans_2d_rand',0.6);
|