1 static struct Kmeans *kmeans_create (struct casereader *cs,
2 const struct variable **variables,
3 int m, int ngroups, int maxiter);
5 static void kmeans_randomize_centers (struct Kmeans *kmeans);
7 static int kmeans_get_nearest_group (struct Kmeans *kmeans, struct ccase *c);
9 static void kmeans_recalculate_centers (struct Kmeans *kmeans);
12 kmeans_calculate_indexes_and_check_convergence (struct Kmeans *kmeans);
14 static void kmeans_order_groups (struct Kmeans *kmeans);
16 static void kmeans_cluster (struct Kmeans *kmeans);
18 static void quick_cluster_show_centers (struct Kmeans *kmeans, bool initial);
20 static void quick_cluster_show_number_cases (struct Kmeans *kmeans);
22 static void quick_cluster_show_results (struct Kmeans *kmeans);
24 int cmd_quick_cluster (struct lexer *lexer, struct dataset *ds);
26 static void kmeans_destroy (struct Kmeans *kmeans);