idl.tmt.representation
Class DensityBasedClustering
java.lang.Object
|
+--idl.tmt.representation.DensityBasedClustering
- All Implemented Interfaces:
- Clustering, SoftClustering
- public class DensityBasedClustering
- extends java.lang.Object
- implements SoftClustering
Created on Apr 14, 2004
- Author:
- jelsas
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
clusters
private Cluster[] clusters
docsClusters
private double[][] docsClusters
clustersDocs
private double[][] clustersDocs
hardCl
private HardClustering hardCl
collection
private IndexedCollection collection
DensityBasedClustering
public DensityBasedClustering(DensityBasedClusterer clusterer,
IndexedCollection collection)
throws java.lang.Exception
getClusterMembershipProbabilities
public double[] getClusterMembershipProbabilities(int docID)
- Gets the probabilities of cluster membership for the given document ID
- Specified by:
getClusterMembershipProbabilities in interface SoftClustering
- See Also:
SoftClustering.getClusterMembershipProbabilities(int)
getNumClusters
public int getNumClusters()
- gets the number of clusters in this clustering.
- Specified by:
getNumClusters in interface Clustering
- See Also:
Clustering.getNumClusters()
getCluster
public Cluster getCluster(int clusterIndex)
- Gets the cluster corresponding to the given cluster index.
- Specified by:
getCluster in interface Clustering
- See Also:
Clustering.getCluster(int)
toHardClustering
public HardClustering toHardClustering()
- Converts this soft clustering to a hard clustering.
- Specified by:
toHardClustering in interface SoftClustering
- See Also:
SoftClustering.toHardClustering()
getNumDocuments
public int getNumDocuments()
- Returns the number of documents in this clustering
- Specified by:
getNumDocuments in interface Clustering
- See Also:
Clustering.getNumDocuments()