xapian-core
1.5.0
|
Kmeans clusterer: This clusterer implements the K-Means clustering algorithm. More...
Public Member Functions | |
KMeans (unsigned int k_, unsigned int max_iters_=0) | |
Constructor specifying number of clusters and maximum iterations. More... | |
ClusterSet | cluster (const MSet &mset) |
Implements the KMeans clustering algorithm. More... | |
void | set_stopper (const Xapian::Stopper *stop=NULL) |
Set the Xapian::Stopper object to be used for identifying stopwords. More... | |
std::string | get_description () const |
Return a string describing this object. | |
![]() | |
virtual | ~Clusterer () |
Destructor. | |
Clusterer * | release () |
Start reference counting this object. More... | |
const Clusterer * | release () const |
Start reference counting this object. More... | |
Kmeans clusterer: This clusterer implements the K-Means clustering algorithm.
|
explicit |
Constructor specifying number of clusters and maximum iterations.
k_ | Number of required clusters |
max_iters_ | The maximum number of iterations for which KMeans will run if it doesn't converge |
|
virtual |
Implements the KMeans clustering algorithm.
mset | MSet object containing the documents that are to be clustered |
Implements Xapian::Clusterer.
void Xapian::KMeans::set_stopper | ( | const Xapian::Stopper * | stop = NULL | ) |
Set the Xapian::Stopper object to be used for identifying stopwords.
Stopwords are discarded while calculating term frequency for terms.
stop | The Stopper object to set (default NULL, which means no stopwords) |