X1=Acid Durability (seconds) | X2=Strength (kg/m2) | Square distance to query instance (3,7) | Rank minimum distance | Is it included in 3-nearest neighbors? |
---|---|---|---|---|
7 | 7 | (7-3)2+(7-7)2=16 | 3 | Yes |
7 | 4 | (7-3)2+(4-7)2=25 | 4 | No |
3 | 4 | (3-3)2+(4-7)2=9 | 1 | Yes |
1 | 4 | (1-3)2+(4-7)2=13 | 2 | Yes |
X1=Acid Durability (seconds) | X2=Strength (kg/m2) | Square distance to query instance (3,7) | Rank minimum distance | Is it included in 3-nearest neighbors? | Category of nearest neighbor |
---|---|---|---|---|---|
7 | 7 | (7-3)2+(7-7)2=16 | 3 | Yes | Bad |
7 | 4 | (7-3)2+(4-7)2=25 | 4 | No | — |
3 | 4 | (3-3)2+(4-7)2=9 | 1 | Yes | Good |
1 | 4 | (1-3)2+(4-7)2=13 | 2 | Yes | Good |