Watch this Author's files
The square distance is calculated (without square root) . Take a look a this tutorial:
http://people.revoledu.com/kardi/tutorial/KNN/KNN_Numerical-example.html
Contact us