GClasses
|
An implementation of the K-means clustering algorithm. More...
#include <GCluster.h>
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 |
GRand * | m_pRand |
An implementation of the K-means clustering algorithm.
GClasses::GKMeansSparse::GKMeansSparse | ( | size_t | nClusters, |
GRand * | pRand | ||
) |
GClasses::GKMeansSparse::~GKMeansSparse | ( | ) |
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.
size_t GClasses::GKMeansSparse::m_nClusters [protected] |
size_t GClasses::GKMeansSparse::m_nDims [protected] |
size_t* GClasses::GKMeansSparse::m_pClusters [protected] |
GRand* GClasses::GKMeansSparse::m_pRand [protected] |