Cluster Head in Kmeans Clustering

4 visualizzazioni (ultimi 30 giorni)
Shahrukh Kasi
Shahrukh Kasi il 12 Ott 2017
Risposto: KSSV il 12 Ott 2017
Are cluster heads and cluster centroids the same in K-means clustering? If not, how to decide the cluster heads of each cluster?

Risposta accettata

KSSV
KSSV il 12 Ott 2017
x = rand(1000,1) ; y = rand(1000,1) ; % random points
N = 4 ; % number of groups
[idx,C,sumd] = kmeans([x y],N) ; % apply kmeans
figure
hold on
for i = 1:N
plot(x(idx==i),y(idx==i),'.') ;
plot(C(i,1),C(i,2),'*')
end
In the above C is the cluster head.....cluster head/ cluster centroid is nothing but the mean values of x and y of each group.

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by