9c7d1b9055b3b086959f2c5b63e05417a4259a87
[pspp-builds.git] / src / language / stats / quick-cluster.h
1 static struct Kmeans *kmeans_create (struct casereader *cs,
2                                      const struct variable **variables,
3                                      int m, int ngroups, int maxiter);
4
5 static void kmeans_randomize_centers (struct Kmeans *kmeans);
6
7 static int kmeans_get_nearest_group (struct Kmeans *kmeans, struct ccase *c);
8
9 static void kmeans_recalculate_centers (struct Kmeans *kmeans);
10
11 static int
12 kmeans_calculate_indexes_and_check_convergence (struct Kmeans *kmeans);
13
14 static void kmeans_order_groups (struct Kmeans *kmeans);
15
16 static void kmeans_cluster (struct Kmeans *kmeans);
17
18 static void quick_cluster_show_centers (struct Kmeans *kmeans, bool initial);
19
20 static void quick_cluster_show_number_cases (struct Kmeans *kmeans);
21
22 static void quick_cluster_show_results (struct Kmeans *kmeans);
23
24 int cmd_quick_cluster (struct lexer *lexer, struct dataset *ds);
25
26 static void kmeans_destroy (struct Kmeans *kmeans);