Definition in file GenKMeans.H.
Go to the source code of this file.
Namespaces | |
| namespace | qgar |
Classes | |
| class | qgar::GenCluster< T > |
| A cluster, as generated by the k-means algorithm implemented by class qgar::GenKMeans. More... | |
| class | qgar::GenKMeans< T > |
| Template class for partitioning a list of objects of type T into a (given) number of clusters using a k-means algorithm. More... | |
KMeans helper functions | |
| template<class T> | |
| std::vector< GenCluster< T > > | qgar::qgKMeans (const std::vector< T > &anObjVect, double(*aDistFunction)(const T &, const T &), int aClusterCnt=3) throw (QgarErrorAlgorithm) |
| Construct a partition of clusters using a distance function. | |
| template<class T> | |
| std::vector< GenCluster< T > > | qgar::qgKMeans (const std::vector< T > &anObjVect, double(*aDistFunction)(const T &, const T &), std::vector< T * > &aCenterVector, int aClusterCnt=3) throw (QgarErrorAlgorithm) |
| Construct a partition of clusters of given centers, using a distance function. | |