Implementation class for the standard KMeans algorithm.
在文件 KMeansLloydImpl.h 第 23 行定义.
静态 Public 成员函数 | |
| 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 |
在文件 KMeansLloydImpl.cpp 第 20 行定义.