|
GClasses
|
This is a base class for clustering algorithms that operate on sparse matrices.
#include <GCluster.h>
Public Member Functions | |
| GSparseClusterer (size_t clusterCount) | |
| virtual | ~GSparseClusterer () |
| virtual void | cluster (GSparseMatrix *pData)=0 |
| Perform clustering. More... | |
| size_t | clusterCount () |
| Return the number of clusters. More... | |
| void | setMetric (GSparseSimilarity *pMetric, bool own) |
| If own is true, then this takes ownership of pMetric. More... | |
| virtual size_t | whichCluster (size_t nVector)=0 |
| Report which cluster the specified row is a member of. More... | |
Protected Attributes | |
| size_t | m_clusterCount |
| bool | m_ownMetric |
| GSparseSimilarity * | m_pMetric |
| GClasses::GSparseClusterer::GSparseClusterer | ( | size_t | clusterCount | ) |
|
virtual |
|
pure virtual |
Perform clustering.
Implemented in GClasses::GKMeansSparse, and GClasses::GKMedoidsSparse.
|
inline |
Return the number of clusters.
| void GClasses::GSparseClusterer::setMetric | ( | GSparseSimilarity * | pMetric, |
| bool | own | ||
| ) |
If own is true, then this takes ownership of pMetric.
|
pure virtual |
Report which cluster the specified row is a member of.
Implemented in GClasses::GKMeansSparse, and GClasses::GKMedoidsSparse.
|
protected |
|
protected |
|
protected |