22 #ifndef __IPSDKMATH_KMEANSCLUSTERING_H__ 23 #define __IPSDKMATH_KMEANSCLUSTERING_H__ 28 #pragma warning (push) 29 #pragma warning (disable : 4275 4251) 33 #include <IPSDKMath/Clustering/KMeansClusteringConfig.h> 34 #include <boost/noncopyable.hpp> 38 namespace clustering {
71 bool isClusteringDone()
const;
96 bool compute(
const ipUInt32 nbClusters,
128 ipUInt32 getNbFailedAttempts()
const;
216 #pragma warning (pop) 218 #endif // __IPSDKMATH_KMEANSCLUSTERING_H__ Definition of import/export macro for library.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
std::vector< ipUInt32 > UInt32Vector
stl vector collections
Definition: BaseCollections.h:33
UInt32Vector _assignments
cluster index associated to each input data
Definition: KMeansClustering.h:206
ipUInt32 _nbIteration
number of iterations associated to selected clustering solution
Definition: KMeansClustering.h:197
eValidityIndexType
Enumerate describing a clustering validity indice type.
Definition: ClusteringTypes.h:48
ipUInt32 _nbFailedAttempts
number of failed attempts
Definition: KMeansClustering.h:194
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
boost::numeric::ublas::vector< ipReal64 > Vector
vector type associated to library
Definition: LinearAlgebraTypes.h:36
Definition: KMeansClusteringConfig.h:28
std::vector< Vector > VectorColl
collection of vectors
Definition: ClusteringTypes.h:31
#define IPSDKMATH_API
Import/Export macro for library IPSDKMath.
Definition: IPSDKMathExports.h:27
KMeansClusteringConfig AlgorithmConfig
algorithm configuration
Definition: KMeansClustering.h:48
Definition: KMeansClustering.h:43
AlgorithmConfig _config
configuration associated to clustering algorithm
Definition: KMeansClustering.h:188
VectorColl _clustersCenters
cluster centers associated to processing
Definition: KMeansClustering.h:203
IPSDKMATH_API ipReal64 computeValidityIndex(const VectorColl &clustersCentersColl, const VectorColl &dataColl, const UInt32Vector &indexColl, const eValidityIndexType &validityIndexType)
function allowing to compute a validity index of a clustering
IPSDKMATH_API ipUInt32 computeAssignment(const VectorColl &clustersCentersColl, const Vector &data)
function allowing to compute cluster assignment using an euclidian distance to clusters centers ...
ipReal64 _compactness
compactness associated to processing
Definition: KMeansClustering.h:200
Predefined types for clustering algorithm.
VectorColl _inputDataColl
input data collection
Definition: KMeansClustering.h:191
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53