Method | Description | |
---|---|---|
CalculateCentroid ( IDistanceMetric distanceMetric, IList |
Calculates a centroid by comparing each coordinate with every other coordinate. The coord with the lowest average distance from all other coords is the most central coord (the centroid). This method uses an inefficient N*N comparison of coords to find a centroid. It is provided only as a last resort for distance metrics for which no means exist to calculate a centroid more directly.
|
Method | Description | |
---|---|---|
CalculateMeanDistanceFromCoords ( IDistanceMetric distanceMetric, IList |
Calculate the mean distance of the specified coord from all of the other coords using the provided distance metric.
|
public static CalculateCentroid ( IDistanceMetric distanceMetric, IList |
||
distanceMetric | IDistanceMetric | |
coordList | IList |
|
return |