In this post, I will give an example of calculating distance comparisons using the Manhattan distance.
I have 3 pieces of data.
This data consists of X data, Y data and Z data.
Data X consists of = 3, 0, 2, 5, 0
Y data consists of = 0, 5, 1, 1, 3
Data Z consists of = 1, 4, 4, 3, 1
From the data above, we will look for a comparison of the distance between Data X to Data Y, Data Y to Data Z and Data Z to Data X
Distance of Data X to Data Y
So, the Distance of Data X to Data Y is 0
Distance of Data Y to Data Z
Tidak ada komentar:
Posting Komentar