KMEANS

You might also like

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 3

JARAK DENGAN KELAS

1 2 3
DATA 80.83 84.50 88.17 KELAS
79 1.83 5.50 9.17 1
85 4.17 0.50 3.17 2
83 2.17 1.50 5.17 2
90 9.17 5.50 1.83 3
82 1.17 2.50 6.17 1
81 0.17 3.50 7.17 1
85 4.17 0.50 3.17 2
87 6.17 2.50 1.17 3
89 8.17 4.50 0.83 3
84 3.17 0.50 4.17 2

KELAS RERATA CENTROID RERATA CENTROID


1 80.67 80.83 0.17
2 84.25 84.50 0.25
3 88.67 88.17 0.50
0.92

delta 0.01
toleransi error 0.11
iterasi1
Data V1 V2 C1 C2 Cluster c1 c2 cluster baru
1 1 3 2.00 2.24 C1 1.00 2.67 C1 1
2 3 3 2.83 2.24 C2 2.24 0.85 C2 1
3 4 3 3.61 2.83 C2 3.16 0.72 C2 1
4 5 3 4.47 3.61 C2 4.12 1.52 C2 1
5 1 2 1.00 1.41 C1 0.00 2.63 C1 1
6 4 2 3.16 2.24 C2 3.00 0.57 C2 1
7 1 1 0.00 1.00 C1 1.00 2.95 C1 1
8 2 1 1.00 0.00 C2 1.41 2.13 C1 0

c1 1 1 1.00 2.00 1.25 1.75


c2 2 1 3.60 2.40 4.00 2.75
Iterasi 3

1.27 3.01 C1 1
2.15 1.03 C2 1
3.02 0.25 C2 1
3.95 1.03 C2 1
0.35 3.09 C1 1
2.76 0.75 C2 1
0.79 3.47 C1 1
1.06 2.66 C1 1

You might also like