Kamis, 10 Agustus 2017

Chebyshev Distance Example

Hello, nice to meet you.

In this article I will give an example of how to calculate the distance by using Chebyshev Distance. About chebysev distance you can learn in my article about"List Calculation of distancebetween data points".

Given the data set as below.

Sepal length
Sepal Width
Petal length
Petal Width
5.5
2.3
4
1.3
6.3
3.3
4.7
1.6
5.2
2.7
3.9
1.4
6.1
2.9
4.7
1.4
7.1
3
5.9
2.1
6.5
3
5.9
2.1
7.2
3.6
6.1
2.5
5.8
2.8
5.1
2.4
7.7
2.6
6.9
2.3
5.6
2.8
4.9
2
















We will measure distance between the fifth data with other data therefore we prepare the fifth data as below.


Sepal length
Sepal Width
Petal length
Petal Width
7.1
3
5.9
2.1





Let us calculate the distance between the fifth data and the other data set using the formula.



1. Calculate the fifth data distance with the first data


2. Calculate the fifth data distance with the second data


So after all the measured data distance obtained results like the table below.


Sepal length
Sepal Width
Petal length
Petal Width
Distance
5.5
2.3
4
1.3
1.9
6.3
3.3
4.7
1.6
1.2
5.2
2.7
3.9
1.4
2
6.1
2.9
4.7
1.4
1.2
7.1
3
5.9
2.1
0
6.5
3
5.9
2.1
0.6
7.2
3.6
6.1
2.5
0.6
5.8
2.8
5.1
2.4
1.3
7.7
2.6
6.9
2.3
1
5.6
2.8
4.9
2
1.5

Tidak ada komentar:

Posting Komentar