SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Static Public Member Functions
CKMeansLloydImpl Class Reference

Detailed Description

Implementation class for the standard KMeans algorithm.

Definition at line 23 of file KMeansLloydImpl.h.

Static Public Member Functions

static void Lloyd_KMeans (int32_t k, CDistance *distance, int32_t max_iter, SGMatrix< float64_t > mus, SGVector< int32_t > ClList, SGVector< float64_t > weights_set, bool fixed_centers)

Member Function Documentation

void Lloyd_KMeans ( int32_t  k,
CDistance distance,
int32_t  max_iter,
SGMatrix< float64_t mus,
SGVector< int32_t >  ClList,
SGVector< float64_t weights_set,
bool  fixed_centers 
)
static

Lloyd's KMeans training method

Parameters
kparameter k
distancedistance
max_itermax iterations allowed
muscluster centers matrix (k columns)
ClListcluster number each data vector belongs (size no_of_vectors)
weights_setno. of points belonging to each cluster (size k)
fixed_centerskeep centers fixed or not

Definition at line 20 of file KMeansLloydImpl.cpp.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation