tag:blogger.com,1999:blog-5746251571102358624.post5985095586144796416..comments2023-07-04T05:27:31.763-07:00Comments on SteamCode: Ruby Distance Calculationslabountyhttp://www.blogger.com/profile/06122119234374455724noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-5746251571102358624.post-42517143678778280622012-07-01T11:34:08.787-07:002012-07-01T11:34:08.787-07:00It might also be useful to decide if you need a di...It might also be useful to decide if you need a distance function, or a metric in euclidean space.<br /><br />I think you'd find that if you just need to compare ("this is closer than that from a common point"), you might just use the sum-of-squares-of-differences and not the square-root of it. As a metric, it will need much less computation. Then when you need the distance, you have its square and just run sqrt then.jabowleshttps://www.blogger.com/profile/14660694734883115073noreply@blogger.com