public class MSTMetric extends AbstractMetric
Constructor and Description |
---|
MSTMetric() |
Modifier and Type | Method and Description |
---|---|
double |
compute() |
double |
compute(java.util.List<java.awt.geom.Point2D.Double[]> positionsOfNetworks)
Calculates the length of the MST for each Network(euclidean distance)
and returns the sum of all lengths
|
double |
compute(java.awt.geom.Point2D.Double[] positionsOfPorts)
calculates length of Minimum Spanning Tree
Manhattan Distance is used
|
java.lang.String |
getMetricName() |
setBenchmarkValues, toString
public java.lang.String getMetricName()
getMetricName
in class AbstractMetric
public double compute()
compute
in class AbstractMetric
public double compute(java.util.List<java.awt.geom.Point2D.Double[]> positionsOfNetworks)
positionsOfNetworks
- list of Networkspublic double compute(java.awt.geom.Point2D.Double[] positionsOfPorts)
positionsOfPorts
-