Tugas 5 Data Mining

Given two objects represented by the tuples (a,b, c, d, e) and (f, g, h, i, j):

–        Compute the Euclidean distance between the two objects.
–        Compute the Manhattan distance between the two objects.
–        Compute the Minkowski distance between the two objects, using h = 3.
–        Compute the supremum distance between the two objects.
o  a = 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 = two last digit in your student identity number
Penyelesaian :
a. 45 x 91 = 4095
b. 45 x 91 = 4140
c. 45 x 93 = 4185
d. 45 x 94 = 4230
e. 45 x 95 = 4275
f. 45 x 80 = 3600
g. 45 x 81 = 3645
h. 45 x 82 = 3690
i. 45 x 83 = 3735
j. 45 x 84 = 3780

Objek y = (a, b, c, d, e)

= (4095, 4140, 4185, 4230, 4275)

Objek z = (f,g,h,i,j)

= (3600, 3645, 3690, 3735, 3780)

Euclidean distance :

Image

Manhattan distance :

Image

Minkowski distance  (h = 3) :

Image

Supremum distance :

Image

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: