GClasses

GClasses::GKMeansSparse Class Reference

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

#include <GCluster.h>

Inheritance diagram for GClasses::GKMeansSparse:
GClasses::GSparseClusterer

List of all members.

Public Member Functions

 GKMeansSparse (size_t nClusters, GRand *pRand)
 ~GKMeansSparse ()
virtual void cluster (GSparseMatrix *pData)
 Performs clustering.
virtual size_t whichCluster (size_t nVector)
 Identifies the cluster of the specified row.

Protected Attributes

size_t m_nDims
size_t m_nClusters
size_t * m_pClusters
GRandm_pRand

Detailed Description

An implementation of the K-means clustering algorithm.


Constructor & Destructor Documentation

GClasses::GKMeansSparse::GKMeansSparse ( size_t  nClusters,
GRand pRand 
)
GClasses::GKMeansSparse::~GKMeansSparse ( )

Member Function Documentation

virtual void GClasses::GKMeansSparse::cluster ( GSparseMatrix pData) [virtual]

Performs clustering.

Implements GClasses::GSparseClusterer.

virtual size_t GClasses::GKMeansSparse::whichCluster ( size_t  nVector) [virtual]

Identifies the cluster of the specified row.

Implements GClasses::GSparseClusterer.


Member Data Documentation