#include <KMeanCluster.h>

Public Types | |
| typedef std::list< Vector3d > | VectorList |
| a list holding vectors to be clustered | |
Public Member Functions | |
| KMeanCluster (int nCentres) | |
| void | train (VectorList &v) |
| int | clusterize (Vector3d &v) |
| VectorList::iterator | begin () |
| VectorList::iterator | end () |
| const size_t | getClusterCount () const |
| void | setCentres (VectorList ¢res) |
Definition at line 10 of file KMeanCluster.h.
| typedef std::list<Vector3d> KMeanCluster::VectorList |
| KMeanCluster::KMeanCluster | ( | int | nCentres | ) |
| VectorList::iterator KMeanCluster::begin | ( | ) | [inline] |
serialisation
Definition at line 36 of file KMeanCluster.h.
| int KMeanCluster::clusterize | ( | Vector3d & | v | ) |
Assign a cluster-id to a given vector
| v | Vector to be classified |
Definition at line 54 of file KMeanCluster.cpp.
| VectorList::iterator KMeanCluster::end | ( | ) | [inline] |
serialisation
Definition at line 42 of file KMeanCluster.h.
| const size_t KMeanCluster::getClusterCount | ( | ) | const [inline] |
| void KMeanCluster::setCentres | ( | VectorList & | centres | ) | [inline] |
| void KMeanCluster::train | ( | VectorList & | v | ) |
Adjust the cluster centes
| v | a list with training data |
Definition at line 11 of file KMeanCluster.cpp.
1.5.7.1