Issue Details (XML | Word | Printable)

Key: MATH-265
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Luc Maisonobe
Reporter: Benjamin McCann
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons Math

Utility methods for calculating the Euclidean distance between two points

Created: 30/Apr/09 10:52 PM   Updated: 07/Aug/09 09:14 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works GeometryUtil.java 2009-04-30 10:53 PM Benjamin McCann 0.9 kB
Java Source File Licensed for inclusion in ASF works GeometryUtilTest.java 2009-04-30 10:53 PM Benjamin McCann 0.3 kB

Resolution Date: 01/May/09 09:53 PM


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Benjamin McCann added a comment - 30/Apr/09 10:53 PM
I didn't see a method like this in Math Utils yet. It's pretty basic and helpful, so I think it would be beneficial.

Luc Maisonobe added a comment - 01/May/09 09:53 PM
fixed in subversion repository as of r770798
The methods have been put in MathUtils instead of a dedicated GeometryUtil.
An error in the double version has been fixed (int sum instead of double sum).
In addition to the L2 (euclidean) distance, the L1 and Linf distances have also been added.
thanks for the report and for the patch

Benjamin McCann added a comment - 02/May/09 12:47 AM
Thanks Luc.
(FYI, MATH-266 made use of GeometryUtil, and will need just a minor tweak to MathUtils in order to compile.)

Luc Maisonobe added a comment - 07/Aug/09 09:14 AM
closing resolved issue for 2.0 release