cluster
Class Cluster
java.lang.Object
cluster.Cluster
- public class Cluster
- extends java.lang.Object
This class contains information about clusters and basic manipulations. Each cluster may contain one or more
files and a set of terms.
Field Summary |
private java.util.List |
fileNames
A list of files which are in this cluster |
private java.util.List |
terms
The vector of terms(fingerprints) that represent the centroid of the cluster. |
Constructor Summary |
Cluster(java.lang.String fileName,
java.util.List fileTerms)
|
Method Summary |
java.util.List |
getFileNames()
|
java.util.List |
getTerms()
|
void |
merge(Cluster other)
Merging to clusters: merging list of files and update the centroid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileNames
private java.util.List fileNames
- A list of files which are in this cluster
terms
private java.util.List terms
- The vector of terms(fingerprints) that represent the centroid of the cluster.
This vector is not sparse i.e. we only hold the terms with weight <> 0 in cluster
Cluster
public Cluster(java.lang.String fileName,
java.util.List fileTerms)
merge
public void merge(Cluster other)
- Merging to clusters: merging list of files and update the centroid
- Parameters:
other
- The other cluster to be merged with this cluster
getFileNames
public java.util.List getFileNames()
getTerms
public java.util.List getTerms()