public class HAC extends Object
Constructor and Description |
---|
HAC(Topology topology,
List<org.objectweb.proactive.core.node.Node> pivot,
DistanceFunction distanceFunction,
long threshold) |
Modifier and Type | Method and Description |
---|---|
List<Cluster<String>> |
clusterize(int numberOfClusters,
Set<String> hosts) |
protected Long |
getDistance(org.objectweb.proactive.core.node.Node node,
org.objectweb.proactive.core.node.Node node2) |
List<org.objectweb.proactive.core.node.Node> |
select(int number,
List<org.objectweb.proactive.core.node.Node> from)
Selects a set of closest nodes from specified list.
|
public HAC(Topology topology, List<org.objectweb.proactive.core.node.Node> pivot, DistanceFunction distanceFunction, long threshold)
public List<org.objectweb.proactive.core.node.Node> select(int number, List<org.objectweb.proactive.core.node.Node> from)
number
- desired nodes numberfrom
- list of "free" nodesprotected Long getDistance(org.objectweb.proactive.core.node.Node node, org.objectweb.proactive.core.node.Node node2)