+static struct Kmeans *kmeans_create (const struct qc *qc);
+
+static void kmeans_randomize_centers (struct Kmeans *kmeans, const struct qc *qc);
+
+static int kmeans_get_nearest_group (struct Kmeans *kmeans, struct ccase *c, const struct qc *);
+
+static void kmeans_recalculate_centers (struct Kmeans *kmeans, const struct casereader *reader, const struct qc *);
+
+static int
+kmeans_calculate_indexes_and_check_convergence (struct Kmeans *kmeans, const struct casereader *reader, const struct qc *);
+
+static void kmeans_order_groups (struct Kmeans *kmeans, const struct qc *);
+
+static void kmeans_cluster (struct Kmeans *kmeans, struct casereader *reader, const struct qc *);
+
+static void quick_cluster_show_centers (struct Kmeans *kmeans, bool initial, const struct qc *);
+
+static void quick_cluster_show_number_cases (struct Kmeans *kmeans, const struct qc *);
+
+static void quick_cluster_show_results (struct Kmeans *kmeans, const struct qc *);