diff options
author | Paul Duncan <pabs@pablotron.org> | 2019-02-04 09:36:52 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2019-02-04 09:36:52 -0500 |
commit | f496f3f1ce5bd068930382f7516494abdbf62489 (patch) | |
tree | f912fff2b50e04cfc4585fa6d8f6afcb05460a68 /km.h | |
parent | 4a4373f113b607f715badd2ea06cba461fe3bbcf (diff) | |
download | kmeans-f496f3f1ce5bd068930382f7516494abdbf62489.tar.bz2 kmeans-f496f3f1ce5bd068930382f7516494abdbf62489.zip |
add kmeans++ method
Diffstat (limited to 'km.h')
-rw-r--r-- | km.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |