Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GenKMeans.H File Reference


Detailed Description

Header file of classes qgar::GenCluster and qgar::GenKMeans.

Author:
Gérald Masini
Date:
July 3, 2001 15:57
Since:
Qgar 2.1

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.