X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=clueless-kmeans.git;a=blobdiff_plain;f=clusterer.h;fp=clusterer.h;h=065dd3ffab9bb4cf5841180c00049580f69479e3;hp=b45f8c329b83e2fbf9767151a67e9ee1cee8cd60;hb=e83a6c8bc9daf4e36a82796cd7ca4ed7f6d686da;hpb=16fd4612a88e603a34f0e8a0079932ecf080bc1f diff --git a/clusterer.h b/clusterer.h index b45f8c3..065dd3f 100644 --- a/clusterer.h +++ b/clusterer.h @@ -39,6 +39,8 @@ public: int _dim; scalar_t **_cluster_means, **_cluster_var; + scalar_t distance_to_centroid(scalar_t *x, int k); + void initialize_clusters(int nb_points, scalar_t **points); // Does the standard hard k-mean association