GClasses
|
An implementation of the K-medoids clustering algorithm for sparse data. More...
#include <GCluster.h>
Public Member Functions | |
GKMedoidsSparse (size_t clusters) | |
virtual | ~GKMedoidsSparse () |
virtual void | cluster (GSparseMatrix *pData) |
Performs clustering. | |
virtual size_t | whichCluster (size_t nVector) |
Identifies the cluster of the specified row. | |
Protected Member Functions | |
double | curGoodness () |
Protected Attributes | |
size_t * | m_pMedoids |
GSparseMatrix * | m_pData |
double | m_d |
An implementation of the K-medoids clustering algorithm for sparse data.
GClasses::GKMedoidsSparse::GKMedoidsSparse | ( | size_t | clusters | ) |
virtual GClasses::GKMedoidsSparse::~GKMedoidsSparse | ( | ) | [virtual] |
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.
double GClasses::GKMedoidsSparse::m_d [protected] |
GSparseMatrix* GClasses::GKMedoidsSparse::m_pData [protected] |
size_t* GClasses::GKMedoidsSparse::m_pMedoids [protected] |