Data Set (Comparison of Distance to Euclidean)
In this post, I will give an example of calculating distance comparisons using the Euclidean 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 from Data X to Data Y is 7.7459666924
Distance of Data Y to Data Z
So, the Distance of Data Y to Data Z is 4.3588989435
Distance of Data Z to Data X
So, the Distance of Data Z to Data X is 5.3851648071
From the results of the three distances found as follows:
From the data above, the distance obtained from Data Y to Data Z is the closest distance with a value of 4.3588989435
Tidak ada komentar:
Posting Komentar