|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--dragon.ir.clustering.AbstractClustering
Abstract class for document clustering
Description:
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Field Summary | |
protected int |
clusterNum
|
protected DocClusterSet |
clusterSet
|
protected FeatureFilter |
featureFilter
|
protected IndexReader |
indexReader
|
protected long |
randomSeed
|
protected boolean |
showProgress
|
| Constructor Summary | |
AbstractClustering(IndexReader indexReader)
|
|
| Method Summary | |
boolean |
cluster()
Cluster all documents in the index reader to the given number of clusters |
DocCluster |
getCluster(int index)
One should call the cluster method before calling this method. |
int |
getClusterNum()
|
DocClusterSet |
getClusterSet()
One should call the cluster method before calling this method. |
FeatureFilter |
getFeatureFilter()
|
IndexReader |
getIndexReader()
|
long |
getRandomSeed()
|
void |
setFeatureFilter(FeatureFilter selector)
|
void |
setRandomSeed(long seed)
|
void |
setShowProgress(boolean option)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface dragon.ir.clustering.Clustering |
cluster |
| Field Detail |
protected IndexReader indexReader
protected FeatureFilter featureFilter
protected int clusterNum
protected DocClusterSet clusterSet
protected boolean showProgress
protected long randomSeed
| Constructor Detail |
public AbstractClustering(IndexReader indexReader)
| Method Detail |
public int getClusterNum()
getClusterNum in interface Clusteringpublic long getRandomSeed()
getRandomSeed in interface Clusteringpublic void setRandomSeed(long seed)
setRandomSeed in interface Clusteringpublic DocClusterSet getClusterSet()
Clustering
getClusterSet in interface Clusteringpublic DocCluster getCluster(int index)
Clustering
getCluster in interface Clusteringindex - the index of the cluster of interest
public IndexReader getIndexReader()
getIndexReader in interface Clusteringpublic boolean cluster()
Clustering
cluster in interface Clusteringpublic FeatureFilter getFeatureFilter()
getFeatureFilter in interface Clusteringpublic void setFeatureFilter(FeatureFilter selector)
setFeatureFilter in interface Clusteringpublic void setShowProgress(boolean option)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||