GClasses

GClasses::GKMedoids Class Reference

An implementation of the K-medoids clustering algorithm. More...

#include <GCluster.h>

Inheritance diagram for GClasses::GKMedoids:
GClasses::GClusterer GClasses::GTransform

List of all members.

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
GMatrixm_pData
double m_d

Detailed Description

An implementation of the K-medoids clustering algorithm.


Constructor & Destructor Documentation

GClasses::GKMedoids::GKMedoids ( size_t  clusters)
virtual GClasses::GKMedoids::~GKMedoids ( ) [virtual]

Member Function Documentation

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.


Member Data Documentation

double GClasses::GKMedoids::m_d [protected]
size_t* GClasses::GKMedoids::m_pMedoids [protected]