Logika Standar

Saturday, 7 April 2012

Data Mining 5

Mengingat dua benda diwakili oleh tupel (a, b, c, d, e) dan (f, g, h, i, j):
- Hitung jarak Euclidean antara dua benda.
- Hitung jarak Manhattan antara dua benda.
- Hitung jarak Minkowski antara dua benda, menggunakan h = 3.
- Hitung jarak supremum antara dua benda.

o = X * 91
o b = X * 92
o c = X * 93
o d = X * 94
o e = X * 95
o f = X * 80
o g = X * 81
o h = X * 82
o i = X * 83
o j = X * 84
                       X = dua digit di nomor identitas Anda mahasiswa


JAWAB :
 dik :  X=39.
·         a = 39 x 91 = 3549
·         b = 39x 92 = 3588
·         c = 39 x 93 = 3627
·         d = 39 x 94 = 3666
·         e = 39 x 95 = 3705
·         f = 39 x 80 = 3120
·         g = 39 x 81 = 3159
·         h = 39 x 82 = 3198
·         i = 39 x 83 = 3237
·         j = 39 x 84 = 3276
Objek    y    =  ( a, b, c, d, e )
                    =  ( 3549, 3588, 3627, 3666, 3705)
Objek    z    =  ( f, g, h, i, j )
                                 =   ( 3120, 3159, 3198, 3237, 3276 )
 
Euclidean distance :
 
 
Manhattan distance :


 Minkowski distance  (h = 3) :




Supremum distance :

                                                      = 3705 – 3276
                                       = 429

No comments:

Post a Comment

silahkan masukkan komentar anda