Package org.nlpub.watset.graph
Class EmptyClustering<V>
- java.lang.Object
-
- org.nlpub.watset.graph.EmptyClustering<V>
-
- Type Parameters:
V- the type of nodes in the graph
- All Implemented Interfaces:
Clustering<V>
public class EmptyClustering<V> extends Object implements Clustering<V>
A trivial clustering algorithm that returns no clusters.
-
-
Constructor Summary
Constructors Constructor Description EmptyClustering()Set up the empty clustering algorithm.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfit()Run the algorithm to induce the parameters of the clusters.Collection<Collection<V>>getClusters()Return a collection of clusters, each cluster is a collection of objects.static <V,E>
Function<org.jgrapht.Graph<V,E>,Clustering<V>>provider()A factory function that sets up the algorithm for the given graph.
-
-
-
Method Detail
-
provider
public static <V,E> Function<org.jgrapht.Graph<V,E>,Clustering<V>> provider()
A factory function that sets up the algorithm for the given graph.- Type Parameters:
V- the type of nodes in the graphE- the type of edges in the graph- Returns:
- a factory function that sets up the algorithm for the given graph
-
fit
public void fit()
Description copied from interface:ClusteringRun the algorithm to induce the parameters of the clusters.- Specified by:
fitin interfaceClustering<V>
-
getClusters
public Collection<Collection<V>> getClusters()
Description copied from interface:ClusteringReturn a collection of clusters, each cluster is a collection of objects. Usually this method is called after theClustering.fit()method.- Specified by:
getClustersin interfaceClustering<V>- Returns:
- clusters
-
-