|
GClasses
|
This merges each cluster with its closest neighbor. (The distance between clusters is computed as the distance between the closest members of the clusters times (n^b), where n is the total number of points from both clusters, and b is a balancing factor. More...
#include <GCluster.h>
Public Member Functions | |
| GAgglomerativeClusterer (size_t nClusterCount) | |
| virtual | ~GAgglomerativeClusterer () |
| virtual void | cluster (const GMatrix *pData) |
| Performs clustering. More... | |
| virtual size_t | whichCluster (size_t nVector) |
| Identifies the cluster of the specified row. More... | |
Public Member Functions inherited from GClasses::GClusterer | |
| GClusterer (size_t nClusterCount) | |
| virtual | ~GClusterer () |
| size_t | clusterCount () |
| Return the number of clusters. More... | |
| virtual GMatrix * | reduce (const GMatrix &in) |
| Clusters pIn and outputs a dataset with one column that specifies the cluster number for each row. More... | |
| void | setMetric (GDistanceMetric *pMetric, bool own) |
| If own is true, then this object will delete pMetric when it is destroyed. More... | |
Public Member Functions inherited from GClasses::GTransform | |
| GTransform () | |
| GTransform (GDomNode *pNode, GLearnerLoader &ll) | |
| virtual | ~GTransform () |
Static Public Member Functions | |
| static void | test () |
| Performs unit tests for this class. Throws an exception if there is a failure. More... | |
Protected Attributes | |
| size_t * | m_pClusters |
Protected Attributes inherited from GClasses::GClusterer | |
| size_t | m_clusterCount |
| bool | m_ownMetric |
| GDistanceMetric * | m_pMetric |
Additional Inherited Members | |
Protected Member Functions inherited from GClasses::GTransform | |
| virtual GDomNode * | baseDomNode (GDom *pDoc, const char *szClassName) const |
| Child classes should use this in their implementation of serialize. More... | |
This merges each cluster with its closest neighbor. (The distance between clusters is computed as the distance between the closest members of the clusters times (n^b), where n is the total number of points from both clusters, and b is a balancing factor.
| GClasses::GAgglomerativeClusterer::GAgglomerativeClusterer | ( | size_t | nClusterCount | ) |
|
virtual |
|
virtual |
Performs clustering.
Implements GClasses::GClusterer.
|
static |
Performs unit tests for this class. Throws an exception if there is a failure.
|
virtual |
Identifies the cluster of the specified row.
Implements GClasses::GClusterer.
|
protected |