GClasses
GClasses::GKMedoidsSparse Class Reference

Detailed Description

An implementation of the K-medoids clustering algorithm for sparse data.

#include <GCluster.h>

Inheritance diagram for GClasses::GKMedoidsSparse:
GClasses::GSparseClusterer

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
 
GSparseMatrixm_pData
 
size_t * m_pMedoids
 
- Protected Attributes inherited from GClasses::GSparseClusterer
size_t m_clusterCount
 
bool m_ownMetric
 
GSparseSimilaritym_pMetric
 

Constructor & Destructor Documentation

GClasses::GKMedoidsSparse::GKMedoidsSparse ( size_t  clusters)
virtual GClasses::GKMedoidsSparse::~GKMedoidsSparse ( )
virtual

Member Function Documentation

virtual void GClasses::GKMedoidsSparse::cluster ( GSparseMatrix pData)
virtual

Performs clustering.

Implements GClasses::GSparseClusterer.

double GClasses::GKMedoidsSparse::curGoodness ( )
protected
virtual size_t GClasses::GKMedoidsSparse::whichCluster ( size_t  nVector)
virtual

Identifies the cluster of the specified row.

Implements GClasses::GSparseClusterer.

Member Data Documentation

double GClasses::GKMedoidsSparse::m_d
protected
GSparseMatrix* GClasses::GKMedoidsSparse::m_pData
protected
size_t* GClasses::GKMedoidsSparse::m_pMedoids
protected