If your dimensionality is low then I totally agree, there is a library that can help you to achieve this: http://code.google.com/p/uzaygezen/
If you are dealing with objects with intrinsic dimension >=20 then you should use other techniques.
No comments yet.