GClasses
|
An implementation of the K-medoids clustering algorithm. More...
#include <GCluster.h>
Public Member Functions | |
GKMedoids (size_t clusters) | |
virtual | ~GKMedoids () |
virtual void | cluster (GMatrix *pData) |
Performs clustering. | |
virtual size_t | whichCluster (size_t nVector) |
Identifies the cluster of the specified row. | |
Protected Member Functions | |
double | curErr () |
Protected Attributes | |
size_t * | m_pMedoids |
GMatrix * | m_pData |
double | m_d |
An implementation of the K-medoids clustering algorithm.
GClasses::GKMedoids::GKMedoids | ( | size_t | clusters | ) |
virtual GClasses::GKMedoids::~GKMedoids | ( | ) | [virtual] |
virtual void GClasses::GKMedoids::cluster | ( | GMatrix * | pData | ) | [virtual] |
Performs clustering.
Implements GClasses::GClusterer.
double GClasses::GKMedoids::curErr | ( | ) | [protected] |
virtual size_t GClasses::GKMedoids::whichCluster | ( | size_t | nVector | ) | [virtual] |
Identifies the cluster of the specified row.
Implements GClasses::GClusterer.
double GClasses::GKMedoids::m_d [protected] |
GMatrix* GClasses::GKMedoids::m_pData [protected] |
size_t* GClasses::GKMedoids::m_pMedoids [protected] |