If you want to account for a more elliptical than circular shape of the cloud of points, or if you want to deal more with higher dimensional points, consider Mahalanobis distance .
http://en.wikipedia.org/wiki/Mahalanobis_distance ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
