aahamed / SeniorDesign

Repo for senior design code
1 stars 0 forks source link

Distance_matrix.java #10

Closed aahamed closed 8 years ago

aahamed commented 8 years ago

Can you add support for taking in List<Coordinate> in Distance_matrix?

For example:

public static List<List<Integers>> distanceMatrix(List<Coordinate<Integers>> coords)
{
       ... compute distance matrix
       return dMatrix;
}

Here coords is the coordinates of the initial clusters and distance matrix is of type ArrayList<List> and contains the distance between every pair of coordinates. This method would be very helpful for testing InitMax.java. Actually, I can go ahead and add the enhancement myself if you are not going to be working on this file.

josuegaleas commented 8 years ago

DistanceMatrix was modified to have this behavior in the latest beta release. Moreover, it returns a DMout object, which contains the distance matrix and other information.