X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=clusterer.h;h=a0a29f97d62dfecd107f5fc3c762c2888f9e1596;hb=379b91965f8d18b05cc40c4a14044eda29a6e82c;hp=f73d6c78f557f1d8c565f4f7d37deddd2b57b0b7;hpb=ca6d045155d4c948063f49b6de8c35c0e3246e7a;p=clueless-kmeans.git diff --git a/clusterer.h b/clusterer.h index f73d6c7..a0a29f9 100644 --- a/clusterer.h +++ b/clusterer.h @@ -38,9 +38,11 @@ public: const static int max_nb_iterations = 10; const static scalar_t min_iteration_improvement = 0.999; + const static scalar_t min_cluster_variance = 0.01f; int _nb_clusters; int _dim; + scalar_t **_cluster_means, **_cluster_var; scalar_t distance_to_centroid(scalar_t *x, int k);