SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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, bool fixed_centers)
 

Member Function Documentation

void Lloyd_KMeans ( int32_t  k,
CDistance distance,
int32_t  max_iter,
SGMatrix< float64_t mus,
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 21 of file KMeansLloydImpl.cpp.


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

SHOGUN Machine Learning Toolbox - Documentation