GClasses
|
An implementation of the K-medoids clustering algorithm for sparse data.
#include <GCluster.h>
Public Member Functions | |
GKMedoidsSparse (size_t clusters) | |
virtual | ~GKMedoidsSparse () |
virtual void | cluster (GSparseMatrix *pData) |
Performs clustering. More... | |
virtual size_t | whichCluster (size_t nVector) |
Identifies the cluster of the specified row. More... | |
Public Member Functions inherited from GClasses::GSparseClusterer | |
GSparseClusterer (size_t clusterCount) | |
virtual | ~GSparseClusterer () |
size_t | clusterCount () |
Return the number of clusters. More... | |
void | setMetric (GSparseSimilarity *pMetric, bool own) |
If own is true, then this takes ownership of pMetric. More... | |
Protected Member Functions | |
double | curGoodness () |
Protected Attributes | |
double | m_d |
GSparseMatrix * | m_pData |
size_t * | m_pMedoids |
Protected Attributes inherited from GClasses::GSparseClusterer | |
size_t | m_clusterCount |
bool | m_ownMetric |
GSparseSimilarity * | m_pMetric |
GClasses::GKMedoidsSparse::GKMedoidsSparse | ( | size_t | clusters | ) |
|
virtual |
|
virtual |
Performs clustering.
Implements GClasses::GSparseClusterer.
|
protected |
|
virtual |
Identifies the cluster of the specified row.
Implements GClasses::GSparseClusterer.
|
protected |
|
protected |
|
protected |