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

Inner Class Summary
private  class DensityBasedClustering.DensityBasedSoftCluster
           
 
Field Summary
private  Cluster[] clusters
           
private  double[][] clustersDocs
           
private  IndexedCollection collection
           
private  double[][] docsClusters
           
private  HardClustering hardCl
           
 
Constructor Summary
DensityBasedClustering(DensityBasedClusterer clusterer, IndexedCollection collection)
           
 
Method Summary
 Cluster getCluster(int clusterIndex)
          Gets the cluster corresponding to the given cluster index.
 double[] getClusterMembershipProbabilities(int docID)
          Gets the probabilities of cluster membership for the given document ID
 int getNumClusters()
          gets the number of clusters in this clustering.
 int getNumDocuments()
          Returns the number of documents in this clustering
 HardClustering toHardClustering()
          Converts this soft clustering to a hard clustering.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

clusters

private Cluster[] clusters

docsClusters

private double[][] docsClusters

clustersDocs

private double[][] clustersDocs

hardCl

private HardClustering hardCl

collection

private IndexedCollection collection
Constructor Detail

DensityBasedClustering

public DensityBasedClustering(DensityBasedClusterer clusterer,
                              IndexedCollection collection)
                       throws java.lang.Exception
Method Detail

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()