SHOGUN
v3.2.0
|
Definition at line 21 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) |
|
static |
Lloyd's KMeans training method
k | parameter k |
distance | distance |
max_iter | max iterations allowed |
mus | cluster centers matrix (k columns) |
ClList | cluster number each data vector belongs (size no_of_vectors) |
weights_set | no. of points belonging to each cluster (size k) |
fixed_centers | keep centers fixed or not |
Definition at line 20 of file KMeansLloydImpl.cpp.