Class Clustering<T>
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.graph.algo.clustering.Clustering<T>
-
public class Clustering<T> extends Object
Detect spatial clusters- Author:
- julien Gaffuri
-
-
Constructor Summary
Constructors Constructor Description Clustering()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
perform(ArrayList<T> objs, Distance<T> d, double dMax, Aggregation<T> agg, boolean closest, ClusteringIndex<T> index)
Build clusters.Collection<Collection<T>>
performMST(Collection<Object> objs, Distance<Object> d, double dMax)
-
-
-
Method Detail
-
perform
public void perform(ArrayList<T> objs, Distance<T> d, double dMax, Aggregation<T> agg, boolean closest, ClusteringIndex<T> index)
Build clusters. Clusters are composed of objects that are at dMax distance of all others objects in the cluster.- Parameters:
objs
- The objects list - the clusters have to be added thered
- The distance measuredMax
- The distance maximum valueagg
- The aggregation method to use to define the cluster representations
-
performMST
public Collection<Collection<T>> performMST(Collection<Object> objs, Distance<Object> d, double dMax)
-
-