From e27b55fb0d9716f53989e75247a807397a60c9ef Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sun, 3 Feb 2019 06:07:13 -0500 Subject: refactor km.h --- km.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/km.h b/km.h index 9a58a6d..ae1791d 100644 --- a/km.h +++ b/km.h @@ -73,6 +73,15 @@ _Bool km_set_normalize(km_set_t * const); // get pointer to data set row float *km_set_get_row(const km_set_t *, const size_t); +// init a set with num_clusters clusters of shape num_floats by picking +// random cluster centers +_Bool km_set_init_rand_clusters( + km_set_t *, + const size_t, + const size_t, + km_rand_t * +); + typedef struct { float d2; size_t cluster; @@ -84,15 +93,6 @@ typedef struct { const size_t num_clusters; } km_solve_stats_t; -// init a set with num_clusters clusters of shape num_floats by picking -// random cluster centers -_Bool km_set_init_rand_clusters( - km_set_t *, - const size_t, - const size_t, - km_rand_t * -); - typedef struct { void (*on_step)(const km_set_t *, const km_row_map_t *, void *); void (*on_stats)(const km_set_t *, const km_solve_stats_t *, void *); -- cgit v1.2.3