aboutsummaryrefslogtreecommitdiff
path: root/km.h
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-02-04 09:36:52 -0500
committerPaul Duncan <pabs@pablotron.org>2019-02-04 09:36:52 -0500
commitf496f3f1ce5bd068930382f7516494abdbf62489 (patch)
treef912fff2b50e04cfc4585fa6d8f6afcb05460a68 /km.h
parent4a4373f113b607f715badd2ea06cba461fe3bbcf (diff)
downloadkmeans-f496f3f1ce5bd068930382f7516494abdbf62489.tar.bz2
kmeans-f496f3f1ce5bd068930382f7516494abdbf62489.zip
add kmeans++ method
Diffstat (limited to 'km.h')
-rw-r--r--km.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/km.h b/km.h
index 866e941..d8fe225 100644
--- a/km.h
+++ b/km.h
@@ -189,12 +189,15 @@ _Bool km_load_path(
);
typedef enum {
- // init cluster set by picking random centroids
+ // rand: init cluster set by picking random centroids
KM_INIT_TYPE_RAND,
- // init cluster set by picking random rows from set
+ // forgy: init cluster set by picking random rows from set
KM_INIT_TYPE_FORGY,
+ // kmeans++: ...
+ KM_INIT_TYPE_KMEANS,
+
KM_INIT_TYPE_LAST,
} km_init_type_t;