public class BisectKMean extends AbstractClustering
BisectKMean clustering
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected DocClusterSet |
clusterSet |
protected ClusterModel |
distMetric |
protected int |
maxIteration |
protected boolean |
refine |
clusterNum, featureFilter, indexReader, randomSeed, showProgress| Constructor and Description |
|---|
BisectKMean(IndexReader indexReader,
ClusterModel distMetric,
int clusterNum) |
BisectKMean(IndexReader indexReader,
ClusterModel distMetric,
int clusterNum,
boolean initAllObjs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cluster(IRDoc[] arrDoc)
Cluster given testing documents to the given number of clusters
|
DocClusterSet |
getClusterSet()
One should call the cluster method before calling this method.
|
int |
getMaxIteration() |
boolean |
getUseAllObjectForInitialization() |
void |
setMaxIteration(int iteration) |
void |
setRefine(boolean refine) |
void |
setUseAllObjectForInitialization(boolean option)
If this option is true, the algorithm randomly assign all objects to the given number of clusters during initialization.
|
cluster, getCluster, getClusterNum, getFeatureFilter, getIndexReader, getRandomSeed, setFeatureFilter, setRandomSeed, setShowProgressprotected ClusterModel distMetric
protected boolean refine
protected int maxIteration
protected DocClusterSet clusterSet
public BisectKMean(IndexReader indexReader, ClusterModel distMetric, int clusterNum)
public BisectKMean(IndexReader indexReader, ClusterModel distMetric, int clusterNum, boolean initAllObjs)
public void setUseAllObjectForInitialization(boolean option)
option - whether use all objects for initializationpublic boolean getUseAllObjectForInitialization()
public boolean cluster(IRDoc[] arrDoc)
ClusteringarrDoc - the document set for clusteringpublic void setRefine(boolean refine)
public int getMaxIteration()
public void setMaxIteration(int iteration)
public DocClusterSet getClusterSet()
ClusteringgetClusterSet in interface ClusteringgetClusterSet in class AbstractClusteringCopyright © 2018 JULIE Lab, Germany. All rights reserved.