};
+
private final List<Double> points;
private final String xmlName;
+
private ClusterConfiguration(String xmlName, double... points) {
this.xmlName = xmlName;
if (points.length == 0 || points.length%2 == 1) {
return points.size()/2;
}
+ /**
+ * Returns the relative positions of the cluster components. The list is of length
+ * <code>2*getClusterCount()</code> with (x,y) value pairs. The origin is at (0,0)
+ * and the values are positioned so that the closest clusters have distance of 1.
+ *
+ * @return a list of (x,y) coordinate pairs.
+ */
public List<Double> getPoints() {
return points; // Unmodifiable
}
}
return ret;
}
+
+
+ @Override
+ public String toString() {
+ return xmlName;
+ }
}