20 #ifndef _MIRTKKMEANS_H 21 #define _MIRTKKMEANS_H 38 int * pointcluster, * oldpointcluster;
41 double * bestcentroid;
42 int * bestpointcluster;
43 double bestsumdistances;
53 kmeans(
double *thepoints,
int numpoints,
int numclusters,
int numiters=100,
int replicates=10);
54 kmeans(
double *thepoints,
int numpoints,
int numclusters,
double* centroids_init,
int numiters=100,
int replicates=10);
55 double *getCentroids();
56 int *getPointClusters();
62 inline double * kmeans::getCentroids(){
return bestcentroid;}
63 inline int * kmeans::getPointClusters(){
return bestpointcluster;}