aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--km.h18
1 files 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 *);